- }
-
- slotInfo->cellId = macCb.macCell->cellId;
- slotInfo->sfn = slotInd->sfn;
- slotInfo->slot = slotInd->slot;
-
- /* Fill Pst */
- pst.selector = ODU_SELECTOR_LWLC;
- pst.srcEnt = ENTRG;
- pst.dstEnt = ENTDUAPP;
- pst.dstInst = 0;
- pst.srcInst = macCb.macInst;
- pst.dstProcId = rgCb[pst.srcInst].rgInit.procId;
- pst.srcProcId = rgCb[pst.srcInst].rgInit.procId;
- pst.region = MAC_MEM_REGION;
- pst.pool = MAC_POOL;
- pst.event = EVENT_MAC_SLOT_IND;
- pst.route = 0;
- pst.prior = 0;
- pst.intfVer = 0;
-
- ret = MacDuAppSlotInd(&pst, slotInfo);
- if(ret != ROK)
- {
- DU_LOG("\nMAC: Failed to send slot indication to DU APP");
- MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, slotInfo, sizeof(SlotInfo));
- }
-
- return ret;
-} /* sendSlotIndMacToDuApp */
+ }
+ oduCellId->cellId = cellId;
+
+ /* Fill Pst */
+ FILL_PST_MAC_TO_DUAPP(pst, EVENT_MAC_CELL_UP_IND);
+
+ ret = MacDuAppCellUpInd(&pst, oduCellId);
+ if(ret != ROK)
+ {
+ DU_LOG("\nMAC: Failed to send cell up indication to DU APP");
+ MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, oduCellId, sizeof(OduCellId));
+ }
+
+ return ret;
+} /* sendCellUpIndMacToDuApp */
+
+/*******************************************************************
+ *
+ * @brief Process slot indication at MAC
+ *
+ * @details
+ *
+ * Function : macProcSlotInd
+ *
+ * Functionality: Process slot indication at MAC
+ *
+ * @params[in] Slot indication info
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t macProcSlotInd(SlotIndInfo slotInd)
+{
+ uint16_t cellIdx;
+
+ GET_CELL_IDX(slotInd.cellId, cellIdx);
+
+ /* Store current time info */
+ macCb.macCell[cellIdx]->currTime.cellId = slotInd.cellId;
+ macCb.macCell[cellIdx]->currTime.slot = slotInd.slot;
+ macCb.macCell[cellIdx]->currTime.sfn = slotInd.sfn;