diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-12-24 12:14:52 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-12-24 12:14:52 +0100 |
commit | cd103a9a5d8630b7a9644c44a776774c575f1cc3 (patch) | |
tree | 47e688ccdd19487c10e47323ff13c65d00b00b42 /openbsc/src | |
parent | 026b4cab3652e852d64d0043c540eeacf684652a (diff) |
BSC VTY: Print the current mode of a dynamic TCH/F / PDCH
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/bsc_vty.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/src/bsc_vty.c b/openbsc/src/bsc_vty.c index 40e734212..d4fda1062 100644 --- a/openbsc/src/bsc_vty.c +++ b/openbsc/src/bsc_vty.c @@ -633,9 +633,13 @@ DEFUN(show_trx, static void ts_dump_vty(struct vty *vty, struct gsm_bts_trx_ts *ts) { - vty_out(vty, "BTS %u, TRX %u, Timeslot %u, phys cfg %s%s", + vty_out(vty, "BTS %u, TRX %u, Timeslot %u, phys cfg %s", ts->trx->bts->nr, ts->trx->nr, ts->nr, - gsm_pchan_name(ts->pchan), VTY_NEWLINE); + gsm_pchan_name(ts->pchan)); + if (ts->pchan == GSM_PCHAN_TCH_F_PDCH) + vty_out(" (%s mode)", + ts->flags & TS_F_PDCH_MODE ? "PDCH" : "TCH/F"); + vty_out(vty, "%s", VTY_NEWLINE); vty_out(vty, " NM State: "); net_dump_nmstate(vty, &ts->nm_state); if (!is_ipaccess_bts(ts->trx->bts)) |