#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;
}