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


Change subject: bts-trx: Avoid pushing interf_meas for disabled TRX
......................................................................

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
(cherry picked from commit 8fe6479358d485203c0d5e4e4f437aaf7236d102)
---
M src/osmo-bts-trx/scheduler_trx.c
1 file changed, 19 insertions(+), 0 deletions(-)



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

diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 382ddae..e7ed5ea 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -124,6 +124,11 @@
        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++)

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

Gerrit-Project: osmo-bts
Gerrit-Branch: 2023q1
Gerrit-Change-Id: Ie3fd80970585cb30808b0644568dbc8936a57721
Gerrit-Change-Number: 32054
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to