X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_harq_dl.c;h=4a87966465035f4f8fa1f14514cf8ed4803ce4b2;hb=22b9cbea0d857b740c9e7268e61262ac9c0c9bdc;hp=1d62851c89d5010a0e21a51b21bd3b396ffc5bf1;hpb=9eb621804acfc1798221e10cd96edf3fa9ea897c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_harq_dl.c b/src/5gnrmac/mac_harq_dl.c index 1d62851c8..4a8796646 100644 --- a/src/5gnrmac/mac_harq_dl.c +++ b/src/5gnrmac/mac_harq_dl.c @@ -40,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 @@ -72,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;