Fix for prach ocassion at slot 8
[o-du/l2.git] / src / 5gnrmac / mac_slot_ind.c
index cba1ccc..e80cb22 100644 (file)
 #include "du_app_mac_inf.h"
 #include "mac.h"
 
-int MacProcDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc *dlBrdcstAlloc)
+int MacProcDlAlloc(Pst *pst, DlAlloc *dlAlloc)
 {
-   if(dlBrdcstAlloc != NULLP)
+   if(dlAlloc != NULLP)
    {
-      memcpy(&macCb.macCell->dlSlot[0].cellBroadcastInfo, dlBrdcstAlloc, sizeof(DlBrdcstAlloc)); 
+               MacDlSlot *currDlSlot =
+               &macCb.macCell->dlSlot[dlAlloc->slotIndInfo.slot % MAX_SLOT_SUPPORTED];
+      memcpy(&currDlSlot->dlInfo, dlAlloc, sizeof(DlAlloc)); 
    }
    return ROK;
 }