aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-08 01:08:41 +0600
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-08 16:54:20 +0600
commit556a966952b9af69234fd6c13e05aec6fbfb26a5 (patch)
tree0261ca326161358765ac1165d99219e5511062b4
parentee5eb616946ed195cda8f9a03e14ea5155836ee4 (diff)
vty: show interference level / band in 'show lchan'
-rw-r--r--src/common/vty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/vty.c b/src/common/vty.c
index f99881a4..576835b8 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1830,6 +1830,14 @@ static void lchan_dump_full_vty(struct vty *vty, const struct gsm_lchan *lchan)
vty_out(vty, " RTP/PDCH Loopback Enabled%s", VTY_NEWLINE);
vty_out(vty, " Radio Link Failure Counter 'S': %d%s", lchan->s, VTY_NEWLINE);
+ /* Interference levels */
+ if (lchan->meas.interf_meas_avg_dbm != 0) {
+ vty_out(vty, " Interference: %d dBm (band %d)%s",
+ lchan->meas.interf_meas_avg_dbm,
+ lchan->meas.interf_band,
+ VTY_NEWLINE);
+ }
+
/* BS/MS Power Control state and parameters */
lchan_bs_power_ctrl_state_dump(vty, 2, lchan);
lchan_ms_power_ctrl_state_dump(vty, 2, lchan);