Commit c62730a5 authored by Haruki NAOI's avatar Haruki NAOI

Fix: Only RLC header exists in MAC PDU.

(cherry picked from commit b1be92c272f711c9e4402656246c78adf448968e)
parent 37ee9eb6
...@@ -2520,7 +2520,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP, ...@@ -2520,7 +2520,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
} }
// check for DCCH1 and update header information (assume 2 byte sub-header) // check for DCCH1 and update header information (assume 2 byte sub-header)
if (TBS - ta_len - header_len_dcch - sdu_length_total > 0) { if (TBS - ta_len - header_len_dcch - sdu_length_total -2 > 0) {
rlc_status = mac_rlc_status_ind(module_idP, rnti, module_idP, frameP, subframeP, ENB_FLAG_YES, MBMS_FLAG_NO, DCCH + 1, (TBS - ta_len - header_len_dcch - sdu_length_total) rlc_status = mac_rlc_status_ind(module_idP, rnti, module_idP, frameP, subframeP, ENB_FLAG_YES, MBMS_FLAG_NO, DCCH + 1, (TBS - ta_len - header_len_dcch - sdu_length_total)
#if (LTE_RRC_VERSION >= MAKE_VERSION(14, 0, 0)) #if (LTE_RRC_VERSION >= MAKE_VERSION(14, 0, 0))
,0, 0 ,0, 0
...@@ -2995,7 +2995,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP, ...@@ -2995,7 +2995,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
} }
// check for DCCH1 and update header information (assume 2 byte sub-header) // check for DCCH1 and update header information (assume 2 byte sub-header)
if(TBS - ta_len - header_len_dcch - sdu_length_total > 0) { if(TBS - ta_len - header_len_dcch - sdu_length_total - 2 > 0) {
rlc_status = mac_rlc_status_ind( module_idP, rlc_status = mac_rlc_status_ind( module_idP,
rnti, rnti,
module_idP, module_idP,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment