From bb843d10a99e0d8ec015144b8b520ebf1c2c8c51 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 23 May 2021 16:51:46 +0200 Subject: VTY: 'show lchan': show that lchan is in VAMOS mode Related: SYS#5315 OS#4940 Change-Id: I9f38712f941d60531526cc3395875655455909d9 --- src/osmo-bsc/bsc_vty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index 1f208bc7f..3eedffb9d 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -1682,6 +1682,8 @@ static void lchan_dump_full_vty(struct vty *vty, struct gsm_lchan *lchan) VTY_NEWLINE); if (!lchan_state_is(lchan, LCHAN_ST_UNUSED)) vty_out(vty, " Training Sequence: Set %d Code %u%s", (lchan->tsc_set > 0 ? lchan->tsc_set : 1), lchan->tsc, VTY_NEWLINE); + if (lchan->vamos.enabled) + vty_out(vty, " VAMOS: enabled%s", VTY_NEWLINE); if (lchan->conn && lchan->conn->bsub) { vty_out(vty, " Subscriber:%s", VTY_NEWLINE); bsc_subscr_dump_vty(vty, lchan->conn->bsub); @@ -1726,9 +1728,10 @@ static void lchan_dump_short_vty(struct vty *vty, struct gsm_lchan *lchan) lchan->ts->trx->bts->nr, lchan->ts->trx->nr, lchan->ts->nr, gsm_pchan_name(lchan->ts->pchan_on_init)); vty_out_dyn_ts_status(vty, lchan->ts); - vty_out(vty, ", Lchan %u, Type %s TSC-s%dc%u, State %s - L1 MS Power: %u dBm RXL-FULL-dl: %4d dBm RXL-FULL-ul: %4d dBm%s", + vty_out(vty, ", Lchan %u, Type %s%s TSC-s%dc%u, State %s - L1 MS Power: %u dBm RXL-FULL-dl: %4d dBm RXL-FULL-ul: %4d dBm%s", lchan->nr, gsm_lchant_name(lchan->type), + lchan->vamos.enabled ? " (VAMOS)" : "", lchan->tsc_set > 0 ? lchan->tsc_set : 1, lchan->tsc, lchan_state_name(lchan), -- cgit v1.2.3