Commit 0755e062 authored by ChiehChun's avatar ChiehChun

Allocate new transmission

parent 7d72a4bc
...@@ -727,13 +727,11 @@ void pf_dl(module_id_t module_id, ...@@ -727,13 +727,11 @@ void pf_dl(module_id_t module_id,
} while (rbStart + rbSize < bwpSize && rballoc_mask[rbStart + rbSize] && TBS < sched_ctrl->num_total_bytes); } while (rbStart + rbSize < bwpSize && rballoc_mask[rbStart + rbSize] && TBS < sched_ctrl->num_total_bytes);
sched_ctrl->rbSize = rbSize; sched_ctrl->rbSize = rbSize;
sched_ctrl->rbStart = rbStart; sched_ctrl->rbStart = rbStart;
n_rb_sched -= sched_ctrl->rbSize;
/* mark the corresponding RBs as used */ /* transmissions: directly allocate */
for (int rb = 0; rb < sched_ctrl->rbSize; rb++) { n_rb_sched -= sched_ctrl->rbSize;
//vrb_map[rb + sched_ctrl->rbStart] = 1; for (int rb = 0; rb < sched_ctrl->rbSize; rb++)
rballoc_mask[rb + sched_ctrl->rbStart] = 0; rballoc_mask[rb+sched_ctrl->rbStart] = 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