diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-03-23 12:37:42 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-03-23 12:38:26 +0100 |
commit | 8fe6479358d485203c0d5e4e4f437aaf7236d102 (patch) | |
tree | 6af4501aaa5473700d87210f5c3975a257e28915 | |
parent | 8e04613e4f0bf5093e15a6027ac53e3934555708 (diff) |
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
-rw-r--r-- | src/osmo-bts-trx/scheduler_trx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index 382ddae9..e7ed5ea6 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -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++) |