diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-12-01 22:33:25 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-12-10 15:27:37 +0000 |
commit | 538c56ef34a5d5d58b036d3ccb448364e79a463c (patch) | |
tree | f6a45f42dcf5094c34c4a0e8a5f95f778948b123 /src/common/vty.c | |
parent | 7233fa862363fdefa1fbe575709d18905c28764d (diff) |
vty: fix dump_lchan_trx_ts(): dump dedicated channels only
It does not make sense to dump CCCH/CBCH as dedicated channels:
OsmoBTS# show lchan
BTS 0, TRX 0, Timeslot 0, Lchan 4: Type CCCH
State: ACTIVE
BS (Downlink) Power Control (autonomous):
Channel reduction: 0 dB (max 0 dB)
TRX reduction: 0 dB
Actual / Nominal power: 13 dBm / 13 dBm
MS (Uplink) Power Control (autonomous):
Current power level: 0, -39 dBm (max 0, -39 dBm)
Channel Mode / Codec: SIGNALLING
LAPDm SAPIs: DCCH --, SACCH --
Valid System Information: 0x00000060
MS Timing Offset: 0, propagation delay: 0 symbols
Radio Link Failure Counter 'S': 0
so let's only dump SDCCH, TCH/F, and TCH/H.
Change-Id: Id7880de56a93cc9fa4ca576b094cef35ee269822
Diffstat (limited to 'src/common/vty.c')
-rw-r--r-- | src/common/vty.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/vty.c b/src/common/vty.c index ada871a0..7284bfaf 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -1449,7 +1449,15 @@ static int dump_lchan_trx_ts(const struct gsm_bts_trx_ts *ts, struct vty *vty, const struct gsm_lchan *lchan = &ts->lchan[lchan_nr]; if (lchan->state == LCHAN_S_NONE) continue; - dump_cb(vty, lchan); + switch (lchan->type) { + case GSM_LCHAN_SDCCH: + case GSM_LCHAN_TCH_F: + case GSM_LCHAN_TCH_H: + dump_cb(vty, lchan); + break; + default: + continue; + } } return CMD_SUCCESS; |