Fix Msg4 mac pdu with padding

This commit is contained in:
luis_pereira87
2021-04-07 16:31:06 +01:00
parent 2ec6ee5f5b
commit 04b28e5f2a
+1 -1
View File
@@ -1786,7 +1786,7 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
mac_subheader_len = 2;
}
if ( pdu_len >= mac_sdu_len ) {
if ( pdu_len >= (mac_subheader_len + mac_sdu_len) ) {
LOG_D(NR_MAC,"DL_SCH_LCID_CCCH with payload len %d\n", mac_sdu_len);