aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-14 23:09:25 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-14 23:09:25 +0200
commitefc92311e22e67a210429a15c29b396b0561317f (patch)
tree29f8184166b821a55644ffa8a2cfeeb23ec12bbf /openbsc
parent4ffb7b41b480fac37f5d29d62abce2be0b5532a1 (diff)
allow vty to set periodic location updating timer t3212
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_hack.c3
-rw-r--r--openbsc/src/vty_interface.c15
2 files changed, 16 insertions, 2 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index 4253959a8..347e9519e 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -1029,11 +1029,10 @@ static int bootstrap_bts(struct gsm_bts *bts)
}
/* Control Channel Description */
- memset(&bts->chan_desc, 0, sizeof(struct gsm48_control_channel_descr));
bts->chan_desc.att = 1;
bts->chan_desc.ccch_conf = RSL_BCCH_CCCH_CONF_1_C;
bts->chan_desc.bs_pa_mfrms = RSL_BS_PA_MFRMS_5;
- bts->chan_desc.t3212 = 0;
+ /* T3212 is set from vty/config */
paging_init(bts);
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 0c8c29a01..527d43667 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -234,6 +234,9 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts)
vty_out(vty, " training_sequence_code %u%s", bts->tsc, VTY_NEWLINE);
vty_out(vty, " base_station_id_code %u%s", bts->bsic, VTY_NEWLINE);
vty_out(vty, " ms max power %u%s", bts->ms_max_power, VTY_NEWLINE);
+ if (bts->chan_desc.t3212)
+ vty_out(vty, " periodic location update %u%s",
+ bts->chan_desc.t3212 * 10, VTY_NEWLINE);
vty_out(vty, " channel allocator %s%s",
bts->chan_alloc_reverse ? "descending" : "ascending",
VTY_NEWLINE);
@@ -988,6 +991,17 @@ DEFUN(cfg_bts_ms_max_power, cfg_bts_ms_max_power_cmd,
return CMD_SUCCESS;
}
+DEFUN(cfg_bts_per_loc_upd, cfg_bts_per_loc_upd_cmd,
+ "periodic location update <0-1530>",
+ "Periodic Location Updating Interval in Minutes")
+{
+ struct gsm_bts *bts = vty->index;
+
+ bts->chan_desc.t3212 = atoi(argv[0]) / 10;
+
+ return CMD_SUCCESS;
+}
+
/* per TRX configuration */
DEFUN(cfg_trx,
@@ -1406,6 +1420,7 @@ int bsc_vty_init(struct gsm_network *net)
install_element(BTS_NODE, &cfg_bts_challoc_cmd);
install_element(BTS_NODE, &cfg_bts_cell_barred_cmd);
install_element(BTS_NODE, &cfg_bts_ms_max_power_cmd);
+ install_element(BTS_NODE, &cfg_bts_per_loc_upd_cmd);
install_element(BTS_NODE, &cfg_trx_cmd);