Commit d0baab6e authored by Robert Schmidt's avatar Robert Schmidt

DLSCH: limit LC bytes according to preprocessor

parent a96c3761
...@@ -844,13 +844,18 @@ schedule_ue_spec(module_id_t module_idP, ...@@ -844,13 +844,18 @@ schedule_ue_spec(module_id_t module_idP,
if (ue_sched_ctrl->dl_lc_bytes[i] == 0) // no data in this LC! if (ue_sched_ctrl->dl_lc_bytes[i] == 0) // no data in this LC!
continue; continue;
LOG_D(MAC, "[eNB %d] SFN/SF %d.%d, LC%d->DLSCH CC_id %d, Requesting %d bytes from RLC (RRC message)\n", const uint32_t data =
min(ue_sched_ctrl->dl_lc_bytes[i],
TBS - ta_len - header_length_total - sdu_length_total - 3);
LOG_D(MAC,
"[eNB %d] SFN/SF %d.%d, LC%d->DLSCH CC_id %d, Requesting %d "
"bytes from RLC (RRC message)\n",
module_idP, module_idP,
frameP, frameP,
subframeP, subframeP,
lcid, lcid,
CC_id, CC_id,
TBS - ta_len - header_length_total - sdu_length_total - 3); data);
sdu_lengths[num_sdus] = mac_rlc_data_req(module_idP, sdu_lengths[num_sdus] = mac_rlc_data_req(module_idP,
rnti, rnti,
...@@ -859,7 +864,7 @@ schedule_ue_spec(module_id_t module_idP, ...@@ -859,7 +864,7 @@ schedule_ue_spec(module_id_t module_idP,
ENB_FLAG_YES, ENB_FLAG_YES,
MBMS_FLAG_NO, MBMS_FLAG_NO,
lcid, lcid,
TBS - ta_len - header_length_total - sdu_length_total - 3, data,
(char *)&dlsch_buffer[sdu_length_total], (char *)&dlsch_buffer[sdu_length_total],
0, 0,
0 0
......
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