Mux Code Changes
[o-du/l2.git] / src / 5gnrmac / rg_tom.c
index e6b259c..f4cd5d9 100755 (executable)
@@ -596,7 +596,18 @@ SlotIndInfo slotInd
    }
 #endif
 
-
+   /* Mux Pdu for Msg4 */
+   SlotIndInfo muxTimingInfo;
+   memset(&muxTimingInfo, 0, sizeof(SlotIndInfo));
+   MacDlSlot *currDlSlot = NULLP;
+   ADD_DELTA_TO_TIME(slotInd, muxTimingInfo, PHY_DELTA);
+   currDlSlot = &macCb.macCell->dlSlot[muxTimingInfo.slot];
+   if(currDlSlot->dlInfo.msg4Alloc)
+       {
+      BuildAndSendMsg4MuxPdu(currDlSlot->dlInfo.msg4Alloc);
+               currDlSlot = NULLP;
+   }
+   
    /* Trigger for DL TTI REQ */
    handleDlTtiReq(slotInd);