summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-04-07 10:34:31 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-04-07 10:34:31 +0200
commitc736754345f636770ba76f66a86cb959a42a7466 (patch)
tree2c185224765e7398ddcaed8f9302e2f7ce7caddc
parentfe4990d74fb6ea9faa16a482a306d36c5b9ba64f (diff)
fixup 687bc2318d18073d02756ef6ea5b96799f4b9aa7
-rw-r--r--src/host/layer23/src/transceiver/trx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/host/layer23/src/transceiver/trx.c b/src/host/layer23/src/transceiver/trx.c
index 678d20cf..ec50b89e 100644
--- a/src/host/layer23/src/transceiver/trx.c
+++ b/src/host/layer23/src/transceiver/trx.c
@@ -328,7 +328,6 @@ static int
_trx_ctrl_cmd_setslot(struct trx *trx, const char *cmd, const char *args)
{
int n, tn, type;
- int i;
n = sscanf(args, "%d %d", &tn, &type);
@@ -337,8 +336,8 @@ _trx_ctrl_cmd_setslot(struct trx *trx, const char *cmd, const char *args)
trx->type[tn] = type;
- if (trx->l1l[i])
- l1ctl_tx_bts_mode(trx->l1l[i], 1, trx->type, trx->bsic, trx->arfcn, trx->gain, trx->l1l[i]->tx_mask, trx->l1l[i]->rx_mask);
+ if (trx->l1l[tn])
+ l1ctl_tx_bts_mode(trx->l1l[tn], 1, trx->type, trx->bsic, trx->arfcn, trx->gain, trx->l1l[tn]->tx_mask, trx->l1l[tn]->rx_mask);
return _trx_ctrl_send_resp(trx, cmd, "%d %d", 0, type);
}