diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-23 18:49:16 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-23 19:02:01 +0100 |
commit | e50ce6e45c4509805807d599cadf1a1b23d37f63 (patch) | |
tree | 03a31ac8a6de100d58c26a5e6342775f0306c530 /src/gsm_rlcmac.h | |
parent | 20848c3ae5c4c9c766c9a6255bc104005974e537 (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 'src/gsm_rlcmac.h')
-rw-r--r-- | src/gsm_rlcmac.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm_rlcmac.h b/src/gsm_rlcmac.h index 9e38966a..13afe59e 100644 --- a/src/gsm_rlcmac.h +++ b/src/gsm_rlcmac.h @@ -1619,8 +1619,8 @@ typedef struct PacketResourceRequestID_t ID; - guint8 Exist_MS_Radio_Access_capability; - MS_Radio_Access_capability_t MS_Radio_Access_capability; + guint8 Exist_MS_Radio_Access_capability2; + MS_Radio_Access_capability_t MS_Radio_Access_capability2; Channel_Request_Description_t Channel_Request_Description; |