Moving all common header file into common_def.h file
[o-du/l2.git] / src / du_app / du_mgr_ex_ms.c
index ef43ccd..e1f82e7 100644 (file)
 *******************************************************************************/
 
 /* This file contains message handling functionality for DU APP */
-
+#include "common_def.h"
+#include "lrg.h"
+#include "legtp.h"
+#include "lkw.h"
+#include "lrg.x"
+#include "lkw.x"
+#include "du_cfg.h"
+#include "E2AP-PDU.h"
 #include "du_sctp.h"
 #include "du_f1ap_msg_hdl.h"
 #include "du_e2ap_msg_hdl.h"
 #include "legtp.h"
 #include "du_app_mac_inf.h"
 #include "du_ue_mgr.h"
-
 #include "kwu.x"
 
 extern S16 cmUnpkLkwCfgCfm(LkwCfgCfm func,Pst *pst, Buffer *mBuf);
 extern S16 cmUnpkLkwCntrlCfm(LkwCntrlCfm func,Pst *pst, Buffer *mBuf);
 extern S16 cmUnpkLrgCfgCfm(LrgCfgCfm func,Pst *pst, Buffer *mBuf);
-
+extern S16 cmUnpkKwuDatInd(KwuDatInd func,Pst *pst, Buffer *mBuf);
+extern S16 cmUnpkLrgSchCfgCfm(LrgSchCfgCfm func,Pst *pst,Buffer *mBuf);
 /**************************************************************************
  * @brief Task Initiation callback function. 
  *
@@ -55,6 +62,8 @@ extern S16 cmUnpkLrgCfgCfm(LrgCfgCfm func,Pst *pst, Buffer *mBuf);
 S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason)
 {
    uint8_t id;
+  
+   memset(&duCb, 0, sizeof(DuCb));
 
    duCb.init.procId  = SFndProcId();
    duCb.init.ent     = entity;
@@ -77,6 +86,8 @@ S16 duActvInit(Ent entity, Inst inst, Region region, Reason reason)
           duCb.cfgCellLst[id] = NULL;
       duCb.actvCellLst[id] = NULL;
    }
+   duCb.numUe = 0;
+       memset(duCb.ueCcchCtxt, 0, DU_MAX_UE * sizeof(UeCcchCtxt));
 
    SSetProcId(DU_PROC);
 
@@ -198,6 +209,17 @@ S16 duActvTsk(Pst *pst, Buffer *mBuf)
                      ret = unpackMacSlotInd(duHandleSlotInd, pst, mBuf);
                      break;
                   }
+               case EVENT_MAC_STOP_IND:
+                  {
+                     ret = unpackMacStopInd(duHandleStopInd, pst, mBuf);
+                     break;
+                  }
+                                       case EVENT_MAC_UL_CCCH_IND:
+                                               {
+                                                       ret = unpackMacUlCcchInd(duHandleUlCcchInd, pst, mBuf);
+                                                       break;
+                                               }
+
                default:
                   {
                      DU_LOG("\nDU_APP : Invalid event received at duActvTsk from ENTRG");