aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-17 23:50:55 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-18 18:56:57 +0200
commit54d09313307fa9ea0430c969d7a3c910b98199a2 (patch)
tree5353d7b44d083b4fc0f5189eda53d7d74f6aaf5d
parentosmo-bts-trx: print timeslot brief info in 'show transceiver' (diff)
downloadOsmoBTS-54d09313307fa9ea0430c969d7a3c910b98199a2.tar.xz
OsmoBTS-54d09313307fa9ea0430c969d7a3c910b98199a2.zip
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
-rw-r--r--src/common/scheduler.c4
-rw-r--r--src/osmo-bts-trx/trx_vty.c3
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);
}
}