diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-26 17:38:37 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:11 +0100 |
commit | fcbc70211208323b22ab9805cdf19769cce72d23 (patch) | |
tree | 4d3b54833789ff6b60b93e657dd9c9097386f7b8 /src/decoding.cpp | |
parent | d11290b90bb5f32a7d57affbe11bdadb24e42db0 (diff) |
pdch: Move the giant switch/case of gprs_rlcmac_rcv_control_block
Move the dispatch into the PDCH. This needs to be split up
further into understandable blocks.
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 596b66e..e7ec99a 100644 --- a/src/decoding.cpp +++ b/src/decoding.cpp @@ -68,3 +68,18 @@ int Decoding::tlli_from_ul_data(const uint8_t *data, uint8_t len, return 0; } +uint8_t Decoding::get_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_GPRS_multislot_class) + continue; + return cap->MS_RA_capability_value[i].u.Content.Multislot_capability.GPRS_multislot_class; + } + + return 0; +} + |