diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-05-30 14:42:50 -0400 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2017-02-07 18:53:38 +0300 |
commit | a78396dcb39112529db4f0697058092670754a8b (patch) | |
tree | afb4f8693994c98d4e60ddc508c74c00e36bdfa3 | |
parent | e9c81d25813b01aca18517bfe8b6c04ba3277e13 (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.
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c index aad01dc55..2c8d0a426 100644 --- a/openbsc/src/libbsc/bsc_vty.c +++ b/openbsc/src/libbsc/bsc_vty.c @@ -2115,9 +2115,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; } |