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.
This commit is contained in:
Alexander Chemeris
2015-05-30 14:42:50 -04:00
committed by Ivan Kluchnikov
parent 3ec78f0d49
commit 0b19f7af80

View File

@@ -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;
}