From 398a5e9063f4d409535b029d0c9f65c43b6acef6 Mon Sep 17 00:00:00 2001 From: cig Date: Tue, 18 Feb 2020 16:08:22 +0100 Subject: [PATCH] Bugfix in RAR MAC PDU: set correct fields order for little endian machine --- openair2/LAYER2/NR_MAC_COMMON/nr_mac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_COMMON/nr_mac.h b/openair2/LAYER2/NR_MAC_COMMON/nr_mac.h index 4c3db7cfe9..09426938cf 100644 --- a/openair2/LAYER2/NR_MAC_COMMON/nr_mac.h +++ b/openair2/LAYER2/NR_MAC_COMMON/nr_mac.h @@ -161,10 +161,10 @@ typedef struct { // TS 38.321 ch. 6.2.3 typedef struct { + uint8_t TA1:7; // octet 1 [6:0] uint8_t R:1; // octet 1 [7] - uint8_t TA1:7; // octet 1 [7:0] - uint8_t TA2:5; // octet 2 [7:2] uint8_t UL_GRANT_1:3; // octet 2 [2:0] + uint8_t TA2:5; // octet 2 [7:3] uint8_t UL_GRANT_2:8; // octet 3 [7:0] uint8_t UL_GRANT_3:8; // octet 4 [7:0] uint8_t UL_GRANT_4:8; // octet 5 [7:0]