diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-08-15 03:21:45 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-08-15 03:21:45 +0200 |
commit | b2dc37f51268cc25378f77b930477238740e65a1 (patch) | |
tree | 8fb23d37b4184458ac06d325d2b6aae4b5b177b4 /openbsc/src/vty_interface.c | |
parent | e903edf5801eb63f65138408c7b5d7c2fa22a231 (diff) | |
parent | d5d5e1d460bc55f10c007ccaa92cef2972711132 (diff) |
Merge commit 'har/master'
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r-- | openbsc/src/vty_interface.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 8fc26e2dd..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); @@ -430,7 +433,7 @@ static void subscr_dump_vty(struct vty *vty, struct gsm_subscriber *subscr) if (subscr->imsi) vty_out(vty, " IMSI: %s%s", subscr->imsi, VTY_NEWLINE); if (subscr->tmsi) - vty_out(vty, " TMSI: %s%s", subscr->tmsi, VTY_NEWLINE); + vty_out(vty, " TMSI: %08X", subscr->tmsi, VTY_NEWLINE); vty_out(vty, " Use count: %u%s", subscr->use_count, 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); |