#include "lwr_mac_fsm.h"
#include "mac_utils.h"
#include "mac_harq_dl.h"
-
-/* function pointers for packing slot ind from mac to sch */
-MacSchSlotIndFunc macSchSlotIndOpts[] =
-{
- packMacSchSlotInd,
- MacSchSlotInd,
- packMacSchSlotInd
-};
+#include "lwr_mac_phy.h"
/**
* @brief process DL allocation from scheduler
MAC_ALLOC(txPdu, txPduLen);
if(!txPdu)
{
- DU_LOG("\nERROR --> MAC : Memory allocation failed in MacProcRlcDlData");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed in MacProcDlAlloc");
return RFAILED;
}
memcpy(txPdu, retxTb, txPduLen);
GET_CELL_IDX(currTimingInfo.cellId, cellIdx);
- ADD_DELTA_TO_TIME(currTimingInfo, muxTimingInfo, PHY_DELTA_DL);
+ ADD_DELTA_TO_TIME(currTimingInfo, muxTimingInfo, PHY_DELTA_DL, macCb.macCell[cellIdx]->numOfSlots);
currDlSlot = &macCb.macCell[cellIdx]->dlSlot[muxTimingInfo.slot];
for(ueIdx=0; ueIdx<MAX_NUM_UE; ueIdx++)
Pst pst;
FILL_PST_MAC_TO_SCH(pst, EVENT_SLOT_IND_TO_SCH);
- return(*macSchSlotIndOpts[pst.selector])(&pst,slotInd);
+ return(SchMessageRouter(&pst, (void *)slotInd));
}
/*******************************************************************