mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
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:
committed by
Ivan Kluchnikov
parent
3ec78f0d49
commit
0b19f7af80
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user