Commit 6aaa0f19 authored by Robert Schmidt's avatar Robert Schmidt

Refactor nr_write_ce_dlsch_pdu(): add size parameter

parent c20d6ea0
......@@ -61,6 +61,7 @@
int nr_write_ce_dlsch_pdu(module_id_t module_idP,
const NR_UE_sched_ctrl_t *ue_sched_ctl,
unsigned char *mac_pdu,
int size,
unsigned char drx_cmd,
unsigned char *ue_cont_res_id)
{
......@@ -803,11 +804,13 @@ void nr_schedule_ue_spec(module_id_t module_id,
int written = nr_write_ce_dlsch_pdu(module_id,
sched_ctrl,
(unsigned char *)buf,
TBS,
255, // no drx
NULL); // contention res id
buf += written;
int size = TBS - written;
DevAssert(size >= 0);
if (size < 4)
LOG_D(MAC, "nr_write_ce_dlsch_pdu(): filled TBS with CEs, cannot add MAC SDUs\n");
/* next, get RLC data */
......
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