Commit 9b41481e authored by Robert Schmidt's avatar Robert Schmidt

Refactor nr_write_ce_dlsch_pdu(): Refactor DRX

parent 7f100b72
...@@ -74,6 +74,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP, ...@@ -74,6 +74,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
// DRX command subheader (MAC CE size 0) // DRX command subheader (MAC CE size 0)
if (drx_cmd != 255) { if (drx_cmd != 255) {
if (size < 1)
return (unsigned char *) mac_pdu_ptr - mac_pdu;
mac_pdu_ptr->R = 0; mac_pdu_ptr->R = 0;
mac_pdu_ptr->LCID = DL_SCH_LCID_DRX; mac_pdu_ptr->LCID = DL_SCH_LCID_DRX;
mac_pdu_ptr++; mac_pdu_ptr++;
......
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