X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch.c;h=2f93aaae61480236f258dfc705fab0d81dac76e8;hb=c46d30fda6e5c60d375d72205da8197815b12d98;hp=090d3896df6d055ceaa8ae5eed315231ebb08627;hpb=8e6123e23f6d831b1fe972f8229e9594a2e92237;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch.c b/src/5gnrsch/sch.c index 090d3896d..2f93aaae6 100644 --- a/src/5gnrsch/sch.c +++ b/src/5gnrsch/sch.c @@ -1025,7 +1025,7 @@ uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd) Inst schInst = pst->dstInst-SCH_INST_START; SchCellCb *cellCb = NULLP; SchUeCb *ueCb = NULLP; - uint8_t lcgIdx; + uint8_t lcgIdx = 0; #ifdef CALL_FLOW_DEBUG_LOG DU_LOG("\nCall Flow: ENTMAC -> ENTSCH : EVENT_SHORT_BSR\n"); @@ -1035,12 +1035,16 @@ uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd) cellCb = schCb[schInst].cells[schInst]; ueCb = schGetUeCb(cellCb, bsrInd->crnti); + ueCb->bsrRcvd = true; /* store dataVolume per lcg in uecb */ for(lcgIdx = 0; lcgIdx < bsrInd->numLcg; lcgIdx++) { ueCb->bsrInfo[lcgIdx].priority = 1; //TODO: determining LCG priority? ueCb->bsrInfo[lcgIdx].dataVol = bsrInd->dataVolInfo[lcgIdx].dataVol; } + + /* Adding UE Id to list of pending UEs to be scheduled */ + addUeToBeScheduled(cellCb, ueCb->ueIdx); return ROK; } @@ -1079,6 +1083,9 @@ uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd) if(uciInd->numSrBits) { ueCb->srRcvd = true; + + /* Adding UE Id to list of pending UEs to be scheduled */ + addUeToBeScheduled(cellCb, ueCb->ueIdx); } return ROK; }