Avoid tx RF Resource Ind for disabled TRX

Related: SYS#6370
Change-Id: I887e0cb03b2a5654accccf7a55fac51319981bfb
This commit is contained in:
Pau Espin 2023-03-17 15:45:37 +01:00
parent 48b00783f8
commit 767f690f05
2 changed files with 10 additions and 4 deletions

View File

@ -227,10 +227,13 @@ int trx_link_estab(struct gsm_bts_trx *trx)
osmo_fsm_inst_dispatch(trx->mo.fi, NM_EV_RSL_UP, NULL); osmo_fsm_inst_dispatch(trx->mo.fi, NM_EV_RSL_UP, NULL);
osmo_fsm_inst_dispatch(trx->bb_transc.mo.fi, NM_EV_RSL_UP, NULL); osmo_fsm_inst_dispatch(trx->bb_transc.mo.fi, NM_EV_RSL_UP, NULL);
if ((rc = rsl_tx_rf_res(trx)) < 0) if (trx->mo.nm_state.operational == NM_OPSTATE_ENABLED ||
oml_tx_failure_event_rep(&trx->bb_transc.mo, NM_SEVER_MAJOR, OSMO_EVT_MAJ_RSL_FAIL, trx->bb_transc.mo.nm_state.operational == NM_OPSTATE_ENABLED) {
"Failed to establish RSL link (%d)", rc); rc = rsl_tx_rf_res(trx);
if (rc < 0)
oml_tx_failure_event_rep(&trx->bb_transc.mo, NM_SEVER_MAJOR, OSMO_EVT_MAJ_RSL_FAIL,
"Failed to establish RSL link (%d)", rc);
}
if (trx == trx->bts->c0) if (trx == trx->bts->c0)
load_timer_start(trx->bts); load_timer_start(trx->bts);

View File

@ -615,6 +615,9 @@ static void l1sap_interf_meas_report(struct gsm_bts *bts)
return; return;
llist_for_each_entry(trx, &bts->trx_list, list) { llist_for_each_entry(trx, &bts->trx_list, list) {
if (trx->mo.nm_state.operational != NM_OPSTATE_ENABLED ||
trx->bb_transc.mo.nm_state.operational != NM_OPSTATE_ENABLED)
continue;
/* Calculate the average of all received samples */ /* Calculate the average of all received samples */
l1sap_interf_meas_calc_avg(trx); l1sap_interf_meas_calc_avg(trx);
/* Report to the BSC over the A-bis/RSL */ /* Report to the BSC over the A-bis/RSL */