aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
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-11-21 11:40:32 +0100
commit175a240285897317fff4a94e4f9b62408797b4b6 (patch)
tree1313591a1183ac02abbaedd056b439a941f103f6 /openbsc/src
parenta49b2c010e05eeaa979c76c9a277bb5aaea31968 (diff)
bsc: Add ctrl command to set the TRX ARFCN
Diffstat (limited to 'openbsc/src')
-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 6315c8a3f..7c8636cf1 100644
--- a/openbsc/src/libbsc/bsc_ctrl_commands.c
+++ b/openbsc/src/libbsc/bsc_ctrl_commands.c
@@ -237,6 +237,7 @@ static int verify_trx_max_power(struct ctrl_cmd *cmd, const char *value, void *_
return 0;
}
+CTRL_CMD_DEFINE_RANGE(trx_arfcn, "arfcn", struct gsm_bts_trx, arfcn, 0, 1023);
static int set_trx_max_power(struct ctrl_cmd *cmd, void *_data)
{
@@ -275,5 +276,7 @@ int bsc_base_ctrl_cmds_install(void)
rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_si);
rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_max_power);
+ rc |= ctrl_cmd_install(CTRL_NODE_TRX, &cmd_trx_arfcn);
+
return rc;
}