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/decoding.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/decoding.cpp')
-rw-r--r-- | src/decoding.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/decoding.cpp b/src/decoding.cpp index fce8124..d4f014b 100644 --- a/src/decoding.cpp +++ b/src/decoding.cpp @@ -83,6 +83,21 @@ uint8_t Decoding::get_ms_class_by_capability(MS_Radio_Access_capability_t *cap) return 0; } +uint8_t Decoding::get_egprs_ms_class_by_capability(MS_Radio_Access_capability_t *cap) +{ + int i; + + for (i = 0; i < cap->Count_MS_RA_capability_value; i++) { + if (!cap->MS_RA_capability_value[i].u.Content.Exist_Multislot_capability) + continue; + if (!cap->MS_RA_capability_value[i].u.Content.Multislot_capability.Exist_EGPRS_multislot_class) + continue; + return cap->MS_RA_capability_value[i].u.Content.Multislot_capability.EGPRS_multislot_class; + } + + return 0; +} + /** * show_rbb needs to be an array with 65 elements * The index of the array is the bit position in the rbb |