X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_mgr_ex_ms.c;h=e1f82e7354151fd4939890d552e5358a23c9012a;hb=105199ef642ffe9736ea24a01d4546578fa25e60;hp=ef43ccd2d06aa146ca56182e96f716fdda829e81;hpb=e550b2091fb29289d12a5722b189acbede7862f0;p=o-du%2Fl2.git diff --git a/src/du_app/du_mgr_ex_ms.c b/src/du_app/du_mgr_ex_ms.c index ef43ccd2d..e1f82e735 100644 --- a/src/du_app/du_mgr_ex_ms.c +++ b/src/du_app/du_mgr_ex_ms.c @@ -17,7 +17,14 @@ *******************************************************************************/ /* 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" @@ -25,13 +32,13 @@ #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");