X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_ue_mgr.c;fp=src%2F5gnrsch%2Fsch_ue_mgr.c;h=907ac340dd74ab2d79b6c1b065c62d111d0505bf;hb=9aed9ab1046cd7786f705238e05e8491954717a9;hp=fcc671e314a82c49da4752557174db42814b7292;hpb=d18d80cc82c8bae113c62a45b30345bfb4ca570f;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_ue_mgr.c b/src/5gnrsch/sch_ue_mgr.c index fcc671e31..907ac340d 100644 --- a/src/5gnrsch/sch_ue_mgr.c +++ b/src/5gnrsch/sch_ue_mgr.c @@ -878,6 +878,7 @@ uint8_t schFillPuschAlloc(SchUeCb *ueCb, SlotTimingInfo puschTime, uint32_t tbSi if (isRetx == FALSE) { puschInfo.harqProcId = SCH_HARQ_PROC_ID; + puschInfo.crnti = ueCb->crnti; puschInfo.fdAlloc.resAllocType = SCH_ALLOC_TYPE_1; puschInfo.fdAlloc.resAlloc.type1.startPrb = startPrb; puschInfo.fdAlloc.resAlloc.type1.numPrb = numRb; @@ -915,6 +916,7 @@ uint8_t schFillPuschAlloc(SchUeCb *ueCb, SlotTimingInfo puschTime, uint32_t tbSi else { puschInfo.harqProcId = hqP->procId; + puschInfo.crnti = ueCb->crnti; puschInfo.fdAlloc.resAllocType = hqP->puschResType; puschInfo.fdAlloc.resAlloc.type1.startPrb = hqP->puschStartPrb; puschInfo.fdAlloc.resAlloc.type1.numPrb = hqP->puschNumPrb; @@ -934,16 +936,18 @@ uint8_t schFillPuschAlloc(SchUeCb *ueCb, SlotTimingInfo puschTime, uint32_t tbSi #endif } schUlSlotInfo = cellCb->schUlSlotInfo[puschTime.slot]; - SCH_ALLOC(schUlSlotInfo->schPuschInfo, sizeof(SchPuschInfo)); - if(!schUlSlotInfo->schPuschInfo) + SCH_ALLOC(schUlSlotInfo->schPuschInfo[ueCb->ueId - 1], sizeof(SchPuschInfo)); + if(!schUlSlotInfo->schPuschInfo[ueCb->ueId - 1]) { DU_LOG("\nERROR --> SCH: Memory allocation failed in schAllocMsg3Pusch"); return RFAILED; } - memcpy(schUlSlotInfo->schPuschInfo, &puschInfo, sizeof(SchPuschInfo)); + cellCb->schUlSlotInfo[puschTime.slot]->puschPres = true; + memcpy(schUlSlotInfo->schPuschInfo[ueCb->ueId - 1], &puschInfo, sizeof(SchPuschInfo)); return ROK; } + /******************************************************************* * * @brief Fills UL DCI information for MSG3 retransmission