X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_harq_dl.c;h=4a87966465035f4f8fa1f14514cf8ed4803ce4b2;hb=05d098e6b94f629a932caaff404f2b703b123852;hp=8b3499fd3bf27139420e6b5be3c8d323412d2c81;hpb=2c0a8253f51c046ed8f291e14e13cde42a43a109;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_harq_dl.c b/src/5gnrmac/mac_harq_dl.c index 8b3499fd3..4a8796646 100644 --- a/src/5gnrmac/mac_harq_dl.c +++ b/src/5gnrmac/mac_harq_dl.c @@ -23,6 +23,7 @@ #include "mac.h" #include "mac_utils.h" #include "mac_harq_dl.h" +#include "mac_ue_mgr.h" /** * @brief Add HARQ process to UE's DL HARQ Entity @@ -39,18 +40,18 @@ * @return * -# Void **/ -void addDlHqProcInUe(SlotTimingInfo dlMsgTime, MacUeCb *ueCb, DlMsgSchInfo schedInfo) +void addDlHqProcInUe(SlotTimingInfo dlMsgTime, MacUeCb *ueCb, DlMsgSchInfo *schedInfo) { uint8_t hqProcId = 0, tbIdx = 0, cwIdx = 0; DlHarqEnt *dlHqEnt = NULLP; DlHarqProcCb *hqProcCb = NULLP; dlHqEnt = &ueCb->dlInfo.dlHarqEnt; - hqProcId = schedInfo.dlMsgInfo.harqProcNum; + hqProcId = schedInfo->harqProcNum; hqProcCb = &dlHqEnt->harqProcCb[hqProcId]; /* Check if harqProcId is already present in UE's DL HARQ Entity */ - if(hqProcCb->procId == schedInfo.dlMsgInfo.harqProcNum) + if(hqProcCb->procId == schedInfo->harqProcNum) { /* Expected Behaviour: * If a HARQ proc is already present in DL HARQ entity, it means this HARQ proc @@ -71,10 +72,10 @@ void addDlHqProcInUe(SlotTimingInfo dlMsgTime, MacUeCb *ueCb, DlMsgSchInfo sched /* Fill HARQ Proc Cb */ hqProcCb->procId = hqProcId; - for(cwIdx = 0; cwIdx < schedInfo.dlMsgPdschCfg.numCodewords; cwIdx++) + for(cwIdx = 0; cwIdx < schedInfo->dlMsgPdschCfg->numCodewords; cwIdx++) { memcpy(&hqProcCb->tbInfo[hqProcCb->numTb].txTime, &dlMsgTime, sizeof(SlotTimingInfo)); - hqProcCb->tbInfo[hqProcCb->numTb].tbSize = schedInfo.dlMsgPdschCfg.codeword[cwIdx].tbSize; + hqProcCb->tbInfo[hqProcCb->numTb].tbSize = schedInfo->dlMsgPdschCfg->codeword[cwIdx].tbSize; hqProcCb->numTb++; } return;