path: root/src/pcu_vty_functions.cpp
diff options
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-01-22 17:06:14 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-08 00:45:39 +0100
commit7c72acaa941fd7f3663b0f9b36fe30f4974f1979 (patch)
tree534822e70b8d4ca7e91d6589f9771c926c234f14 /src/pcu_vty_functions.cpp
parent1ff70c26e3a79aa583f5da8f595364efdebbfa06 (diff)
ms: Add current_pacch_slots method
The PACCH is specific to an MS and may change when a TBF is established or removed (see TS 44.060, For multislot class type 2 phones, more than one timeslot may be used to transmit RLC/MAC control messages. Add a method that returns a set of TS which can be used for the PACCH. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_vty_functions.cpp')
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 3fcd3e6..166b15e 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -118,6 +118,7 @@ static int show_ms(struct vty *vty, GprsMs *ms)
unsigned i;
LListHead<gprs_rlcmac_tbf> *i_tbf;
+ uint8_t slots;
vty_out(vty, "MS TLLI=%08x, IMSI=%s%s", ms->tlli(), ms->imsi(), VTY_NEWLINE);
vty_out(vty, " Timing advance (TA): %d%s", ms->ta(), VTY_NEWLINE);
@@ -129,6 +130,12 @@ static int show_ms(struct vty *vty, GprsMs *ms)
GprsCodingScheme::modeName(ms->mode()), VTY_NEWLINE);
vty_out(vty, " MS class: %d%s", ms->ms_class(), VTY_NEWLINE);
vty_out(vty, " EGPRS MS class: %d%s", ms->egprs_ms_class(), VTY_NEWLINE);
+ vty_out(vty, " PACCH: ");
+ slots = ms->current_pacch_slots();
+ for (int i = 0; i < 8; i++)
+ if (slots & (1 << i))
+ vty_out(vty, "%d ", i);
+ vty_out(vty, "%s", VTY_NEWLINE);
vty_out(vty, " LLC queue length: %d%s", ms->llc_queue()->size(),
vty_out(vty, " LLC queue octets: %d%s", ms->llc_queue()->octets(),