aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-07-08 06:20:46 +0200
committerlaforge <laforge@osmocom.org>2021-07-16 16:04:18 +0000
commitae0b737c62e4f8953dc64b67515fff5f2b330fea (patch)
tree8b34928a8b443fddede661758a19d9359d07cc6a /include
parent71b4f94601cbd1aa97729be2d789d21d20aea706 (diff)
separate 'interference-meas level-bounds' cfg and used
The VTY defun already indicates BSC_VTY_ATTR_RESTART_ABIS_OML_LINK correctly, but so far we would immediately start using the new values internally, and wrongly interpret interference levels. Fix that. Have bts->interf_meas_params twice: interf_meas_params_cfg for the VTY configured values, and interf_meas_params_used for the values that the BTS actually knows about, after they were sent via OML. In a running BSC, when changing the interference level boundaries on the telnet VTY, the BTS is not immediately told about the change. That would require a BTS restart. Hence store the cfg values separately in interf_meas_params_cfg. For comparing/printing interference levels in a running BTS, only employ the values that were actually sent via OML and placed in interf_meas_params_used. Related: SYS#5313 Change-Id: Iad8cf4151ff7f86dc0549158ed5d91d788d40b1f
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bts.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 992c9bb22..9ec936438 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -552,8 +552,10 @@ struct gsm_bts {
/* Maximum BCCH carrier power reduction */
uint8_t c0_max_power_red_db;
- /* Interference Measurement Parameters */
- struct gsm_interf_meas_params interf_meas_params;
+ /* Interference Measurement Parameters, as read from VTY */
+ struct gsm_interf_meas_params interf_meas_params_cfg;
+ /* Interference Measurement Parameters, as last sent via OML */
+ struct gsm_interf_meas_params interf_meas_params_used;
/* We will ignore CHAN RQD with access delay greater than rach_max_delay */
uint8_t rach_max_delay;