Commit eac0f1ab authored by Robert Schmidt's avatar Robert Schmidt

Refactor nr_write_ce_dlsch_pdu(): remove offset

parent f0a1c099
...@@ -67,7 +67,7 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP, ...@@ -67,7 +67,7 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
gNB_MAC_INST *gNB = RC.nrmac[module_idP]; gNB_MAC_INST *gNB = RC.nrmac[module_idP];
NR_MAC_SUBHEADER_FIXED *mac_pdu_ptr = (NR_MAC_SUBHEADER_FIXED *) mac_pdu; NR_MAC_SUBHEADER_FIXED *mac_pdu_ptr = (NR_MAC_SUBHEADER_FIXED *) mac_pdu;
uint8_t last_size = 0; uint8_t last_size = 0;
int offset = 0, mac_ce_size, i, timing_advance_cmd, tag_id = 0; int mac_ce_size, i, timing_advance_cmd, tag_id = 0;
// MAC CEs // MAC CEs
uint8_t mac_header_control_elements[16], *ce_ptr; uint8_t mac_header_control_elements[16], *ce_ptr;
ce_ptr = &mac_header_control_elements[0]; ce_ptr = &mac_header_control_elements[0];
...@@ -296,10 +296,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP, ...@@ -296,10 +296,8 @@ int nr_write_ce_dlsch_pdu(module_id_t module_idP,
} }
} }
// compute final offset // return final offset
offset = ((unsigned char *) mac_pdu_ptr - mac_pdu); return (unsigned char *) mac_pdu_ptr - mac_pdu;
//printf("Offset %d \n", ((unsigned char *) mac_pdu_ptr - mac_pdu));
return offset;
} }
int getNrOfSymbols(NR_BWP_Downlink_t *bwp, int tda) { int getNrOfSymbols(NR_BWP_Downlink_t *bwp, int tda) {
......
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