Automatic PRB allocation for PUSCH and PRACH [Issue-ID: ODUHIGH-385]
[o-du/l2.git] / src / 5gnrsch / sch_slot_ind.c
index 97ea00a..76a840d 100644 (file)
@@ -49,8 +49,6 @@ SchMacDlAllocFunc schMacDlAllocOpts[] =
    packSchMacDlAlloc
 };
 
-SchCb schCb[SCH_MAX_INST];
-
 /*******************************************************************
  *
  * @brief Handles sending DL broadcast alloc to MAC 
@@ -451,11 +449,13 @@ uint8_t schProcessSlotInd(SlotTimingInfo *slotInd, Inst schInst)
             return RFAILED;
          }
          memset(dciInfo,0,sizeof(DciInfo));
+
          /* update the SFN and SLOT */
          memcpy(&dlSchedInfo.schSlotValue.ulDciTime, slotInd, sizeof(SlotTimingInfo));
-         slot = dlSchedInfo.schSlotValue.ulDciTime.slot;
+
          /* Update PUSCH allocation */
-         schFillPuschAlloc(ueCb, slot, totDataReq, &schPuschInfo);
+         schFillPuschAlloc(ueCb, dlSchedInfo.schSlotValue.ulDciTime, totDataReq, &schPuschInfo);
+
          /* Fill DCI for UL grant */
          schFillUlDci(ueCb, schPuschInfo, dciInfo);
          memcpy(&dciInfo->slotIndInfo, &dlSchedInfo.schSlotValue.ulDciTime, sizeof(SlotTimingInfo));
@@ -489,7 +489,6 @@ uint8_t schProcessSlotInd(SlotTimingInfo *slotInd, Inst schInst)
    schInitDlSlot(cell->schDlSlotInfo[slot]);
    schUlResAlloc(cell, schInst);
 
-
    return ret;
 }