X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_ex_ms.c;h=8f5f68d71ca6d4f05e372df3182a3553cedb894f;hb=5007af25423493fbc002e30d847aa05d44bc180e;hp=6e64f4af1994897d3878f8ea5b14f6c7647f5e6e;hpb=ba78fa13b01e0729fe0a6a7a18cbf1d52cdcda1c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_ex_ms.c b/src/5gnrmac/rg_ex_ms.c index 6e64f4af1..8f5f68d71 100755 --- a/src/5gnrmac/rg_ex_ms.c +++ b/src/5gnrmac/rg_ex_ms.c @@ -73,17 +73,11 @@ registered with SSI during the LTE MAC Task initialization. * @param[in] Reason reason. * @return void **/ -#ifdef ANSI static inline void rgHdlSMEvents ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -static inline void rgHdlSMEvents(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->event) { @@ -113,13 +107,13 @@ Buffer *mBuf; /* message buffer */ /* Process MAC cell config */ unpackDuMacCellCfg(MacProcCellCfgReq, pst, mBuf); break; - case EVENT_MAC_CELL_START_REQ: + case EVENT_MAC_CELL_START: /* Process MAC cell start request */ - unpackMacCellStartReq(MacProcCellStartReq, pst, mBuf); + unpackMacCellStart(MacProcCellStart, pst, mBuf); break; - case EVENT_MAC_CELL_STOP_REQ: + case EVENT_MAC_CELL_STOP: /* Process MAC cell stop request */ - unpackMacCellStopReq(MacProcCellStopReq, pst, mBuf); + unpackMacCellStop(MacProcCellStop, pst, mBuf); break; case EVENT_MAC_DL_CCCH_IND: /* Process DL CCCH Ind */ @@ -133,7 +127,17 @@ Buffer *mBuf; /* message buffer */ /* Process Ue Reconfig Request */ unpackMacUeReconfigReq(MacProcUeReconfigReq, pst, mBuf); break; - default: + case EVENT_MAC_UE_DELETE_REQ: + { + unpackMacUeDeleteReq(MacProcUeDeleteReq, pst, mBuf); + break; + } + case EVENT_MAC_CELL_DELETE_REQ: + { + unpackMacCellDeleteReq(MacProcCellDeleteReq, pst, mBuf); + break; + } + default: RG_FREE_MSG(mBuf); break; } @@ -154,17 +158,11 @@ Buffer *mBuf; /* message buffer */ * @param[in] Reason reason. * @return void **/ -#ifdef ANSI static inline void rgHdlNHEvents ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -static inline void rgHdlNHEvents(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->event) { @@ -199,17 +197,11 @@ Buffer *mBuf; /* message buffer */ * @param[in] Reason reason. * @return void **/ -#ifdef ANSI static inline void rgHdlKWEvents ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -static inline void rgHdlKWEvents(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->event) { @@ -254,17 +246,11 @@ Buffer *mBuf; /* message buffer */ * @param[in] Reason reason. * @return void **/ -#ifdef ANSI static inline void rgHdlTFEvents ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -static inline void rgHdlTFEvents(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->event) { @@ -307,17 +293,11 @@ Buffer *mBuf; /* message buffer */ * @param[in] Reason reason. * @return void **/ -#ifdef ANSI static inline void rgHdlRGEvents ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -static inline void rgHdlRGEvents(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->event) { @@ -431,17 +411,11 @@ Buffer *mBuf; /* message buffer */ * @return S16 * -# ROK **/ -#ifdef ANSI S16 rgActvTsk ( Pst *pst, /* post structure */ Buffer *mBuf /* message buffer */ ) -#else -S16 rgActvTsk(pst, mBuf) -Pst *pst; /* post structure */ -Buffer *mBuf; /* message buffer */ -#endif { switch(pst->srcEnt) {