aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-02-21 11:14:30 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-06 23:02:43 +0100
commit318ec7c67058e08008f2e50ee1a0db063bfca0ab (patch)
treebdccb0158648e39ad0313e5864b64035b44a1e49 /openbsc/src
parentce8e0b38ebe36b4ae339e5497dc562f50e01410e (diff)
nitb: Add ctrl command to set the BTS location area code
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 33244a30b..df77aff7b 100644
--- a/openbsc/src/libbsc/bsc_ctrl_commands.c
+++ b/openbsc/src/libbsc/bsc_ctrl_commands.c
@@ -202,6 +202,8 @@ CTRL_CMD_DEFINE(net_mcc_mnc_apply, "mcc-mnc-apply");
CTRL_CMD_VTY_STRING(bts_description, "description", struct gsm_bts, description);
CTRL_CMD_DEFINE_RANGE(bts_unit_id, "unit-id", struct gsm_bts,
ip_access.site_id, 0, 65534);
+CTRL_CMD_DEFINE_RANGE(bts_lac, "location-area-code", struct gsm_bts,
+ location_area_code, 0, 65535);
int bsc_base_ctrl_cmds_install(void)
{
@@ -228,6 +230,7 @@ int bsc_base_ctrl_cmds_install(void)
rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_description);
rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_unit_id);
+ rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_lac);
return rc;
}