fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/32560 )


Change subject: oml: reset BCCH carrier power reduction mode (if enabled)
......................................................................

oml: reset BCCH carrier power reduction mode (if enabled)

We should not maintain BCCH carrier power reduction mode if we loose
connection to the BSC.  When entering NM_BTS_ST_OP_DISABLED_OFFLINE,
reset the related state fields if it was enabled.

Change-Id: I34468e3fccc490f48e30b159b63308a395b65fa9
Related: SYS#6435
---
M src/common/nm_bts_fsm.c
1 file changed, 20 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/60/32560/1

diff --git a/src/common/nm_bts_fsm.c b/src/common/nm_bts_fsm.c
index eeec8f8..e162cf0 100644
--- a/src/common/nm_bts_fsm.c
+++ b/src/common/nm_bts_fsm.c
@@ -104,8 +104,14 @@
 static void st_op_disabled_offline_on_enter(struct osmo_fsm_inst *fi, uint32_t 
prev_state)
 {
        struct gsm_bts *bts = (struct gsm_bts *)fi->priv;
+
        bts->mo.setattr_success = false;
        bts->mo.opstart_success = false;
+
+       /* Reset BCCH carrier power reduction mode (if enabled) */
+       if (bts->c0_power_red_db > 0)
+               bts_set_c0_pwr_red(bts, 0);
+
        oml_mo_state_chg(&bts->mo, NM_OPSTATE_DISABLED, NM_AVSTATE_OFF_LINE, 
-1);
 }


--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/32560
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I34468e3fccc490f48e30b159b63308a395b65fa9
Gerrit-Change-Number: 32560
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to