X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_slot_ind.c;h=0efd930a5d404ffe2f514fbc1f555d7a32bda1c4;hb=refs%2Fchanges%2F52%2F12952%2F4;hp=f9292914abd43cdb15a88f2eac5912dce4175289;hpb=5256719522354a90ea688e9c95a1212d0104b34e;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_slot_ind.c b/src/5gnrsch/sch_slot_ind.c index f9292914a..0efd930a5 100644 --- a/src/5gnrsch/sch_slot_ind.c +++ b/src/5gnrsch/sch_slot_ind.c @@ -242,8 +242,6 @@ bool schFillBoGrantDlSchedInfo(SchCellCb *cell, SlotTimingInfo currTime, uint8_t } } - cell->schUlSlotInfo[pucchTime.slot]->pucchUe = ueId; - /*Re-setting the BO's of all DL LCs in this UE*/ for(lcIdx = 0; lcIdx < MAX_NUM_LC; lcIdx++) { @@ -421,6 +419,7 @@ bool findValidK0K1Value(SchCellCb *cell, SlotTimingInfo currTime, uint8_t ueId, uint8_t numK0 = 0, k0TblIdx = 0, k0Val = 0, k0Index =0 ; uint8_t k1TblIdx = 0, k1Index = 0, k1Val = 0, numK1 = 0; uint8_t ret = RFAILED; + uint16_t crnti = 0; SchUeCb *ueCb = NULLP; SchK0K1TimingInfoTbl *k0K1InfoTbl; @@ -434,6 +433,7 @@ bool findValidK0K1Value(SchCellCb *cell, SlotTimingInfo currTime, uint8_t ueId, #endif ueCb = &cell->ueCb[ueId-1]; + GET_CRNTI(crnti, ueId); if(dedMsg == true) { k0K1InfoTbl = &ueCb->k0K1InfoTbl; @@ -508,7 +508,7 @@ bool findValidK0K1Value(SchCellCb *cell, SlotTimingInfo currTime, uint8_t ueId, continue; } #endif - if(cell->schUlSlotInfo[pucchTime->slot]->pucchUe != 0) + if(cell->schUlSlotInfo[pucchTime->slot]->schPucchInfo[ueId - 1].crnti == crnti) { continue; } @@ -518,11 +518,11 @@ bool findValidK0K1Value(SchCellCb *cell, SlotTimingInfo currTime, uint8_t ueId, } pdcchTime->cellId = cell->cellId; pdschTime->cellId = cell->cellId; - - cell->schUlSlotInfo[pucchTime->slot]->pucchUe = ueId; + + cell->schUlSlotInfo[pucchTime->slot]->schPucchInfo[ueId - 1].crnti = crnti; /*Availability of PUCCH for HARQ resources*/ - ret = schAllocPucchResource(cell, *pucchTime, ueCb, hqP, pdcchAllocInfo); + ret = schAllocPucchResource(cell, ueId, *pucchTime, ueCb, hqP, pdcchAllocInfo); if(ret == RFAILED) { /*DL allocation can't go through as PUCCH is unavailable*/