X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_rr.c;h=64ae9210bf3b577a6e8010d5c51e99c9796f1c87;hb=41eaaec52d3fe0d5c003e6c0676e9a18fc8ba37a;hp=a6c52e2ec8a69be15b93398aab1bf336c7e81a0c;hpb=ba99af5e5ea60b0d8eede9f3323fc9a9991fcfe3;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_rr.c b/src/5gnrsch/sch_rr.c index a6c52e2ec..64ae9210b 100644 --- a/src/5gnrsch/sch_rr.c +++ b/src/5gnrsch/sch_rr.c @@ -54,7 +54,7 @@ uint8_t schMsg3RetxSchedulingForUe(SchRaCb *raCb) currTime = cell->slotInfo; /* Calculating time frame to send DCI for MSG3 Retx*/ - ADD_DELTA_TO_TIME(currTime, dciTime, PHY_DELTA_DL + SCHED_DELTA); + ADD_DELTA_TO_TIME(currTime, dciTime, PHY_DELTA_DL + SCHED_DELTA, cell->numSlots); #ifdef NR_TDD /* Consider this slot for sending DCI, only if it is a DL slot */ if(schGetSlotSymbFrmt(dciSlot, raCb->cell->slotFrmtBitMap) == DL_SLOT) @@ -154,7 +154,7 @@ bool schGetMsg3K2(SchCellCb *cell, SchUlHqProcCb* msg3HqProc, uint16_t dlTime, S k2 = k2 + msg3Delta; if(k2 >= msg3MinSchTime) { - ADD_DELTA_TO_TIME(currTime, msg3TempTime, k2); + ADD_DELTA_TO_TIME(currTime, msg3TempTime, k2, cell->numSlots); #ifdef NR_TDD if(schGetSlotSymbFrmt(msg3TempTime.slot % totalCfgSlot, cell->slotFrmtBitMap) == DL_SLOT) continue; @@ -177,4 +177,4 @@ bool schGetMsg3K2(SchCellCb *cell, SchUlHqProcCb* msg3HqProc, uint16_t dlTime, S } /********************************************************************** End of file - **********************************************************************/ \ No newline at end of file + **********************************************************************/