Do not do RLC Ind if no data for LC

This commit is contained in:
Robert Schmidt
2022-02-23 10:15:53 +01:00
parent 06236ff796
commit f9079f1d2b
@@ -1317,8 +1317,10 @@ void nr_schedule_ue_spec(module_id_t module_id,
for (int i = 0; i < sched_ctrl->dl_lc_num; ++i) {
const int lcid = sched_ctrl->dl_lc_ids[i];
int dlsch_total_bytes = 0;
if (sched_ctrl->rlc_status[lcid].bytes_in_buffer == 0)
continue; // no data for this LC
int dlsch_total_bytes = 0;
while (size > 3) {
// we do not know how much data we will get from RLC, i.e., whether it
// will be longer than 256B or not. Therefore, reserve space for long header, then