bts-trx: Avoid pushing interf_meas for disabled TRX

It makes no sense to push interference meas results for those TRX since
they are disabled, unused and hence won't be reported in RSL RF Res Ind.

Related: SYS#6370
Change-Id: Ie3fd80970585cb30808b0644568dbc8936a57721
This commit is contained in:
Pau Espin 2023-03-23 12:37:42 +01:00
parent 8e04613e4f
commit 8fe6479358
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ static void bts_report_interf_meas(const struct gsm_bts *bts)
unsigned int tn, ln;
llist_for_each_entry(trx, &bts->trx_list, list) {
/* Skip pushing interf_meas for disabled TRX */
if (trx->mo.nm_state.operational != NM_OPSTATE_ENABLED ||
trx->bb_transc.mo.nm_state.operational != NM_OPSTATE_ENABLED)
continue;
for (tn = 0; tn < ARRAY_SIZE(trx->ts); tn++) {
const struct gsm_bts_trx_ts *ts = &trx->ts[tn];
for (ln = 0; ln < ARRAY_SIZE(ts->lchan); ln++)