AssertFatal(UE_mac_inst[module_idP].scheduling_info.LCID_buffer_remain[DCCH]>=sdu_lengths[0],"LCID=%d RLC has segmented %d bytes but MAC has max=%d\n",
AssertFatal(UE_mac_inst[module_idP].scheduling_info.LCID_buffer_remain[lcid]>=sdu_lengths[num_sdus],"LCID=%d RLC has segmented %d bytes but MAC has max=%d\n",
AssertFatal(UE_mac_inst[module_idP].scheduling_info.LCID_buffer_remain[DCCH1]>=sdu_lengths[num_sdus],"LCID=%d RLC has segmented %d bytes but MAC has max=%d\n",
AssertFatal(UE_mac_inst[module_idP].scheduling_info.LCID_buffer_remain[lcid]>=sdu_lengths[num_sdus],"LCID=%d RLC has segmented %d bytes but MAC has max=%d\n",
// Check BSR padding: it is done after PHR according to Logical Channel Prioritization order
// Check for max padding size, ie MAC Hdr for last RLC PDU = 1
/* For Padding BSR:
- if the number of padding bits is equal to or larger than the size of the Short BSR plus its subheader but smaller than the size of the Long BSR plus its subheader:
- if more than one LCG has data available for transmission in the TTI where the BSR is transmitted: report Truncated BSR of the LCG with the highest priority logical channel with data available for transmission;
- else report Short BSR.
- else if the number of padding bits is equal to or larger than the size of the Long BSR plus its subheader, report Long BSR.