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
(cherry picked from commit acaf6c563b)
This commit is contained in:
Vadim Yanitskiy 2023-04-30 16:46:49 +07:00
parent 00239a8e89
commit bfdc23b1c6
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ static void st_op_disabled_notinstalled_on_enter(struct osmo_fsm_inst *fi, uint3
bts->si_valid = 0;
TALLOC_FREE(bts->mo.nm_attr);
bts_cbch_reset(bts);
if (bts->c0_power_red_db > 0)
bts_set_c0_pwr_red(bts, 0);
bts->mo.setattr_success = false;
bts->mo.opstart_success = false;