aboutsummaryrefslogtreecommitdiffstats
path: root/tests/rlcmac/RLCMACTest.ok
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-03-23 18:49:16 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-03-23 19:02:01 +0100
commite50ce6e45c4509805807d599cadf1a1b23d37f63 (patch)
tree03a31ac8a6de100d58c26a5e6342775f0306c530 /tests/rlcmac/RLCMACTest.ok
parent20848c3ae5c4c9c766c9a6255bc104005974e537 (diff)
rlcmac: Introduce MS Radio Access Capabilities 2 to fix related spare bits
There's two variants for the Ms Radio Access Capabilities. * The usual encoding with spare bits (usually to fill up to octet boundary) as defined in TS 24.008 Table 10.5.146 And there's too: * MS Radio Access Capabilities 2 IE from TS44.060 section 12.30, which is the same but removing all spare bits, and which is used in messages like Packet Resource Request and Additional MS RAC messages. The later is used basically for messages having extra IEs after the MS Radio Access capabilities IE, since they are encoded immediatelly afterwards. So this patch does: * Adds the expected spare bits (M_PADDING) to MS_Radio_Access_capability_t * Creates a new MS_Radio_Access_capability2_t without padding * Updates code to use the new "2" version where needed. Note RLCMACTest long de/encoding line logs change only because the name of the struct changes (the "2" is added). Change-Id: Ibd756f80a03452a651e2771dbc628d701e55ac4b
Diffstat (limited to 'tests/rlcmac/RLCMACTest.ok')
-rw-r--r--tests/rlcmac/RLCMACTest.ok4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rlcmac/RLCMACTest.ok b/tests/rlcmac/RLCMACTest.ok
index 3ef15d4c..4e4967be 100644
--- a/tests/rlcmac/RLCMACTest.ok
+++ b/tests/rlcmac/RLCMACTest.ok
@@ -136,9 +136,9 @@ vector1 == vector2 : TRUE
GPRS multislot class = 3
EGPRS multislot class = 3
=== Test encoding of MS RA Capability ===
-encode_gsm_ra_cap() returns -5
+encode_gsm_ra_cap() returns 0
vector1 (len_ind=27) = 13 65 14 62 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-vector2 (len_ind=65) = 18 25 14 62 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+vector2 (len_ind=65) = 18 25 14 62 30 00 00 00 00 03 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b
=== Test decoding of a malformed vector (short length indicator) ===
decode_gsm_ra_cap() returns -5
*** testMalformedRAcap ***