aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-30 14:42:50 -0400
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-05-30 23:32:16 +0300
commit0b19f7af80284991cc8512ae4d168469a100eeee (patch)
treeea62112515dae35987b4afdba4a70e16e4aee191 /openbsc
parent3ec78f0d49513b78a0fca5a6861f34f638c4b5bf (diff)
libbsc: Update a BTS's SIs when ms_max_power is changed from VTY.
Otherwise you have to restart BTS or at least break the RSL connection to apply the change.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libbsc/bsc_vty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 9314c6f2a..a4c5309d9 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -2193,9 +2193,17 @@ DEFUN(cfg_bts_ms_max_power, cfg_bts_ms_max_power_cmd,
"Maximum transmit power of the MS in dBm")
{
struct gsm_bts *bts = vty->index;
+ int rc;
bts->ms_max_power = atoi(argv[0]);
+ /* Apply setting to the BTS */
+ rc = gsm_bts_set_system_infos(bts);
+ if (rc != 0) {
+ vty_out(vty, "%% Failed updating SYSTEM INFORMATION for the BTS%s", VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
return CMD_SUCCESS;
}