From 54d09313307fa9ea0430c969d7a3c910b98199a2 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 17 Jun 2021 23:50:55 +0200 Subject: osmo-bts-trx: measure interference levels on TRXC_IDLE We already do the intereference measurements on inactive logical channels. For the active channels we can still use the IDLE slots, on which the UEs shall not transmit Uplink bursts. Change-Id: Ic3030dba5eb223177298aa4e43559a93dc3d1392 Related: SYS#5313, OS#1569 --- src/common/scheduler.c | 4 ++-- src/osmo-bts-trx/trx_vty.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/scheduler.c b/src/common/scheduler.c index 9796506f..3dd76931 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -1491,8 +1491,8 @@ int trx_sched_ul_burst(struct l1sched_ts *l1ts, struct trx_ul_burst_ind *bi) /* check if channel is active */ if (!TRX_CHAN_IS_ACTIVE(l1cs, bi->chan)) { - /* handle noise measurements */ - if (TRX_CHAN_IS_DEDIC(bi->chan)) + /* handle noise measurements on dedicated and idle channels */ + if (TRX_CHAN_IS_DEDIC(bi->chan) || bi->chan == TRXC_IDLE) trx_sched_noise_meas(l1cs, bi); return 0; } diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c index 27c835f5..bb9d1584 100644 --- a/src/osmo-bts-trx/trx_vty.c +++ b/src/osmo-bts-trx/trx_vty.c @@ -100,6 +100,9 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver", tn, mf->name, VTY_NEWLINE); vty_out(vty, " pending DL prims : %u%s", llist_count(&l1ts->dl_prims), VTY_NEWLINE); + vty_out(vty, " interference : %ddBm%s", + l1ts->chan_state[TRXC_IDLE].meas.interf_avg, + VTY_NEWLINE); } } -- cgit v1.2.3-59-g8ed1b