summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-01-09 19:55:04 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-06 23:05:13 +0100
commitc38743c550c2506978fc05aa48f1dfcaee95d8bf (patch)
tree7d7151c6c65e8d830c1aaa4173e6cea823aac047
parentd33b5e1a6575ac4c9469a40e212c7b647efa1671 (diff)
nitb: Add ctrl command to set the TRX ARFCN
-rw-r--r--openbsc/src/libbsc/bsc_ctrl_commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_ctrl_commands.c b/openbsc/src/libbsc/bsc_ctrl_commands.c
index 8708b8204..888c82cfa 100644
--- a/openbsc/src/libbsc/bsc_ctrl_commands.c
+++ b/openbsc/src/libbsc/bsc_ctrl_commands.c
@@ -392,6 +392,7 @@ static int verify_trx_max_power(struct ctrl_cmd *cmd, const char *value, void *_
return 0;
}
CTRL_CMD_DEFINE(trx_max_power, "bs-power-reduction");
+CTRL_CMD_DEFINE_RANGE(trx_arfcn, "arfcn", struct gsm_bts_trx, arfcn, 0, 1023);
@@ -429,5 +430,7 @@ int bsc_base_ctrl_cmds_install(void)
rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_t200);
rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_max_power);
+ rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_arfcn);
+
return rc;
}