X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_slot_ind.c;h=e80cb22e06b40dc73b86e44943a03e8115e2908d;hb=8b3c1a54b33c87e09512690649ed24775f7a5508;hp=cba1ccc208107c0d0943d4607994a7d9fb04487d;hpb=f15bab416a36e421d42be3d2d1a42bf4c8c8b6c2;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_slot_ind.c b/src/5gnrmac/mac_slot_ind.c index cba1ccc20..e80cb22e0 100644 --- a/src/5gnrmac/mac_slot_ind.c +++ b/src/5gnrmac/mac_slot_ind.c @@ -42,11 +42,13 @@ #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; }