Otherwise you have to restart BTS or at least break the RSL connection
to apply the change.

-- 
Regards,
Alexander Chemeris.
CEO, Fairwaves, Inc.
https://fairwaves.co

Subscribe to Fairwaves news: http://eepurl.com/baL_pf
From 376ff9f5164c1db22df893b1d664f85382a22f29 Mon Sep 17 00:00:00 2001
From: Alexander Chemeris <[email protected]>
Date: Sat, 30 May 2015 14:42:50 -0400
Subject: [PATCH 2/2] 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.
---
 openbsc/src/libbsc/bsc_vty.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index af30f39..d126baf 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -2127,9 +2127,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;
 }
 
-- 
1.9.1

Reply via email to