aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-18 00:22:05 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-18 18:56:57 +0200
commitc126870c5f1a925e88b078ce860884a72727f70c (patch)
tree9f2b26bff363389949d9e85e0aff60b12e50820e
parent8a1a74e6ca727b8549f072d896d32a7cfe5b5a00 (diff)
osmo-bts-trx: print timeslot brief info in 'show transceiver'
-rw-r--r--src/osmo-bts-trx/trx_vty.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index a110f435..27c835f5 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -57,6 +57,7 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver",
{
struct gsm_bts_trx *trx;
struct trx_l1h *l1h;
+ unsigned int tn;
llist_for_each_entry(trx, &g_bts->trx_list, list) {
struct phy_instance *pinst = trx_phy_instance(trx);
@@ -87,6 +88,19 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver",
VTY_NEWLINE);
else
vty_out(vty, " bsic : undefined%s", VTY_NEWLINE);
+
+ for (tn = 0; tn < ARRAY_SIZE(trx->ts); tn++) {
+ const struct gsm_bts_trx_ts *ts = &trx->ts[tn];
+ const struct l1sched_ts *l1ts = ts->priv;
+ const struct trx_sched_multiframe *mf;
+
+ mf = &trx_sched_multiframes[l1ts->mf_index];
+
+ vty_out(vty, " timeslot #%u (%s)%s",
+ tn, mf->name, VTY_NEWLINE);
+ vty_out(vty, " pending DL prims : %u%s",
+ llist_count(&l1ts->dl_prims), VTY_NEWLINE);
+ }
}
return CMD_SUCCESS;