[Epic-ID: ODUHIGH-464][Task-ID: ODUHIGH-483]TDD compilation warning fix
[o-du/l2.git] / src / 5gnrsch / sch_rr.c
index a6c52e2..c084b1e 100644 (file)
@@ -42,9 +42,6 @@
 uint8_t schMsg3RetxSchedulingForUe(SchRaCb *raCb)
 {
    bool      k2Found = false;
-#ifdef NR_TDD
-   uint8_t   totalCfgSlot = 0;
-#endif
    uint16_t             dciSlot = 0;
    SlotTimingInfo       dciTime, msg3Time;
    SchCellCb            *cell = NULLP;
@@ -54,7 +51,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 +151,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 +174,4 @@ bool schGetMsg3K2(SchCellCb *cell, SchUlHqProcCb* msg3HqProc, uint16_t dlTime, S
 }
 /**********************************************************************
   End of file
- **********************************************************************/
\ No newline at end of file
+ **********************************************************************/