X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_slot_ind.c;h=fdd2669e392f77f6d4ca30b866d79ff440c01ae9;hb=b5c5f7e79733f48e4d78e0de1821ad05efa00118;hp=7c42b1030387a20d2638001bccdbc1a53d1485b0;hpb=b7a8e8fc6abc7fba2f580684da44413d481be825;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_slot_ind.c b/src/5gnrmac/mac_slot_ind.c index 7c42b1030..fdd2669e3 100644 --- a/src/5gnrmac/mac_slot_ind.c +++ b/src/5gnrmac/mac_slot_ind.c @@ -31,14 +31,6 @@ #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 * @@ -169,7 +161,7 @@ uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo) 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); @@ -387,7 +379,7 @@ int sendSlotIndMacToSch(SlotTimingInfo *slotInd) Pst pst; FILL_PST_MAC_TO_SCH(pst, EVENT_SLOT_IND_TO_SCH); - return(*macSchSlotIndOpts[pst.selector])(&pst,slotInd); + return(SchMessageRouter(&pst, (void *)slotInd)); } /*******************************************************************