summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-27 17:14:47 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2013-02-27 17:14:47 +0100
commita4a41d27a6d40abe2a9b51cb967e7572f1d672f2 (patch)
tree87355e0129c6d8137118449dcc56ee1738ad5dde
parent36abe18cf9bfe25f5bea892889d05856d7e3a521 (diff)
Transceiver application rejects RXTUNE/TXTUNE, if given ARFCN is invalid
-rw-r--r--src/host/layer23/src/transceiver/trx.c2
1 files changed, 2 insertions, 0 deletions
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;
}