#include "mac_harq_dl.h"
#include "lwr_mac_phy.h"
-/* function pointers for packing slot ind from mac to sch */
-MacSchSlotIndFunc macSchSlotIndOpts[] =
-{
- packMacSchSlotInd,
- MacSchSlotInd,
- packMacSchSlotInd
-};
-
/**
* @brief process DL allocation from scheduler
*
dlSlot[dlSchedInfo->schSlotValue.broadcastTime.slot];
currDlSlot->dlInfo.isBroadcastPres = true;
memcpy(&currDlSlot->dlInfo.brdcstAlloc, &dlSchedInfo->brdcstAlloc, sizeof(DlBrdcstAlloc));
- currDlSlot->dlInfo.brdcstAlloc.sib1Alloc.sib1PdcchCfg.dci.pdschCfg = \
- &currDlSlot->dlInfo.brdcstAlloc.sib1Alloc.sib1PdschCfg;
}
for(ueIdx=0; ueIdx<MAX_NUM_UE; ueIdx++)
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);
return RFAILED;
}
memcpy(currDlSlot->pageAllocInfo, dlPageAlloc, sizeof(DlPageAlloc));
- currDlSlot->pageAllocInfo->pagePdcchCfg.dci.pdschCfg = \
- &currDlSlot->pageAllocInfo->pagePdschCfg;
}
else
{
Pst pst;
FILL_PST_MAC_TO_SCH(pst, EVENT_SLOT_IND_TO_SCH);
- return(*macSchSlotIndOpts[pst.selector])(&pst,slotInd);
+ return(SchMessageRouter(&pst, (void *)slotInd));
}
/*******************************************************************