+#include "mac_upr_inf_api.h"
+#include "mac_utils.h"
+
+/*******************************************************************
+ *
+ * @brief Send stop indication to DU APP
+ *
+ * @details
+ *
+ * Function : sendStopIndToDuApp
+ *
+ * Functionality:
+ * Send stop indication to DU APP
+ *
+ * @params[in] Pst info
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t sendStopIndToDuApp(uint16_t cellId)
+{
+ Pst pst;
+ uint8_t ret = ROK;
+ OduCellId *oduCellId;
+
+ /* Allocate sharable memory */
+ MAC_ALLOC_SHRABL_BUF(oduCellId, sizeof(OduCellId));
+ if(!oduCellId)
+ {
+ DU_LOG("\nERROR --> MAC : Stop Indication memory allocation failed");
+ return RFAILED;
+ }
+ oduCellId->cellId = cellId;
+
+ /* Fill Pst */
+ FILL_PST_MAC_TO_DUAPP(pst, EVENT_MAC_STOP_IND);
+
+ ret = MacDuAppStopInd(&pst, oduCellId);
+ if(ret != ROK)
+ {
+ DU_LOG("\nERROR --> MAC: Failed to send stop indication to DU APP");
+ MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, oduCellId, sizeof(OduCellId));
+ }
+ return ROK;
+}