diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-09-28 17:55:32 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-30 12:20:36 +0100 |
commit | c3c58046c7223d48c61eb7126f33dca300254485 (patch) | |
tree | 6c28490d15cc70d5a0774a3c7fd56e645bf2ae50 /src/gprs_ms.cpp | |
parent | 111ebe84c2b0a49472ec59022aecf56adfefd82e (diff) |
edge: Get EGPRS multislot class
The EGPRS MS class ist contained in the MS_RA_capability information.
Its presence indicates, that the MS is able (and willing) to use
EGPRS.
This commit implements basic support for retrieving, storing, and
showing it in the VTY. The information is stored in the MS object.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.cpp')
-rw-r--r-- | src/gprs_ms.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp index 807f3459..76fe47c2 100644 --- a/src/gprs_ms.cpp +++ b/src/gprs_ms.cpp @@ -96,6 +96,7 @@ GprsMs::GprsMs(BTS *bts, uint32_t tlli) : m_new_dl_tlli(0), m_ta(0), m_ms_class(0), + m_egprs_ms_class(0), m_current_cs_ul(1), m_current_cs_dl(1), m_is_idle(true), @@ -447,6 +448,18 @@ void GprsMs::set_ms_class(uint8_t ms_class_) m_ms_class = ms_class_; } +void GprsMs::set_egprs_ms_class(uint8_t ms_class_) +{ + if (ms_class_ == m_egprs_ms_class) + return; + + LOGP(DRLCMAC, LOGL_INFO, + "Modifying MS object, TLLI = 0x%08x, EGPRS MS class %d -> %d\n", + tlli(), m_egprs_ms_class, ms_class_); + + m_egprs_ms_class = ms_class_; +} + void GprsMs::update_error_rate(gprs_rlcmac_tbf *tbf, int error_rate) { struct gprs_rlcmac_bts *bts_data; |