X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_handle_phy.c;h=ecdd4317532e2a1cddc6fd2d9e656001cdd5aeb5;hb=180692ac45aac62b3207635a7cb36773e74e499f;hp=0c4027835ad9c0b82a4c68460c1b0391dd6f80a1;hpb=0fccb83e55b237d60cf451bab71a0c7242cc6e66;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_handle_phy.c b/src/5gnrmac/lwr_mac_handle_phy.c index 0c4027835..ecdd43175 100644 --- a/src/5gnrmac/lwr_mac_handle_phy.c +++ b/src/5gnrmac/lwr_mac_handle_phy.c @@ -46,6 +46,7 @@ #include "lwr_mac_fsm.h" #include "lwr_mac_phy.h" #include "lwr_mac_upr_inf.h" +#include "rg.h" #ifdef FAPI /* Function pointer for slot indication from lower mac to mac */ @@ -333,8 +334,9 @@ uint8_t handleRxDataInd(fapi_rx_data_indication_t *fapiRxDataInd) pdu->ul_cqi = fapiRxDataInd->pdus[pduIdx].ul_cqi; pdu->timingAdvance = fapiRxDataInd->pdus[pduIdx].timingAdvance; pdu->rssi = fapiRxDataInd->pdus[pduIdx].rssi; - /* TODO : Copy pdu from FAPI msg to MAC structure*/ - //pdu->pduData; + + MAC_ALLOC(pdu->pduData, pdu->pduLength); + memcpy(pdu->pduData, fapiRxDataInd->pdus[pduIdx].pduData, pdu->pduLength); } fillLwrMacToMacPst(&pst);