From 68b5a10389c1ad7da2cc94c821771eb46e7051f0 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 27 Feb 2013 17:14:47 +0100 Subject: Transceiver application rejects RXTUNE/TXTUNE, if given ARFCN is invalid --- src/host/layer23/src/transceiver/trx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host/layer23/src/transceiver/trx.c b/src/host/layer23/src/transceiver/trx.c index b82c80bd..635532c1 100644 --- a/src/host/layer23/src/transceiver/trx.c +++ b/src/host/layer23/src/transceiver/trx.c @@ -356,6 +356,7 @@ _trx_ctrl_cmd_rxtune(struct trx *trx, const char *cmd, const char *args) if ( arfcn == ARFCN_INVAL || (trx->arfcn != ARFCN_INVAL && trx->arfcn != arfcn)) { LOGP(DTRX, LOGL_ERROR, "RXTUNE called with invalid/inconsistent frequency\n"); + rv = -1; goto done; } @@ -381,6 +382,7 @@ _trx_ctrl_cmd_txtune(struct trx *trx, const char *cmd, const char *args) if ( arfcn == ARFCN_INVAL || (trx->arfcn != ARFCN_INVAL && trx->arfcn != arfcn)) { LOGP(DTRX, LOGL_ERROR, "TXTUNE called with invalid/inconsistent frequency\n"); + rv = -1; goto done; } -- cgit v1.2.3