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=466f51b68ff12faf507195f7246ac0971cfe3dda;hpb=a9e15890b397c8fe514ccd82cf1c8541099fe573;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_slot_ind.c b/src/5gnrmac/mac_slot_ind.c index 466f51b68..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 * @@ -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)); } /*******************************************************************