1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /* This file contains message handling functionality for DU APP */
20 #include "common_def.h"
29 #include "du_f1ap_msg_hdl.h"
30 #include "du_ue_mgr.h"
33 #include "lphy_stub.h"
42 extern DuCfgParams duCfgParam;
43 extern S16 cmPkLkwCfgReq(Pst *pst, KwMngmt *cfg);
44 extern S16 cmPkLkwCntrlReq(Pst *pst, KwMngmt *cfg);
45 extern S16 cmPkLrgCfgReq(Pst *pst, RgMngmt *cfg);
46 extern S16 BuildAndSendE2SetupReq();
47 extern S16 egtpHdlDatInd(EgtpMsg egtpMsg);
48 extern uint8_t BuildAndSendDUConfigUpdate();
49 extern U16 getTransId();
50 extern S16 cmPkLrgSchCfgReq(Pst * pst,RgMngmt * cfg);
52 packMacCellCfgReq packMacCellCfgOpts[] =
54 packMacCellCfg, /* packing for loosely coupled */
55 MacHdlCellCfgReq, /* packing for tightly coupled */
56 packMacCellCfg, /* packing for light weight loosly coupled */
59 DuMacCellStartReq packMacCellStartReqOpts[] =
61 packMacCellStartReq, /* Loose coupling */
62 MacHdlCellStartReq, /* TIght coupling */
63 packMacCellStartReq /* Light weight-loose coupling */
66 DuMacCellStopReq packMacCellStopReqOpts[] =
68 packMacCellStopReq, /* Loose coupling */
69 MacHdlCellStopReq, /* TIght coupling */
70 packMacCellStopReq /* Light weight-loose coupling */
73 /**************************************************************************
74 * @brief Function to fill configs required by RLC
78 * Function : duBuildRlcCfg
81 * Initiates general Configs towards RLC
83 * @param[in] Inst Specifies if RLC UL or RLC DL instance
84 * @return ROK - success
87 ***************************************************************************/
88 S16 duBuildRlcCfg(Inst inst)
91 KwGenCfg *genCfg = NULLP;
94 DU_SET_ZERO(&kwMngmt, sizeof(KwMngmt));
95 DU_SET_ZERO(&pst, sizeof(Pst));
97 genCfg = &(kwMngmt.t.cfg.s.gen);
99 /*----------- Fill General Configuration Parameters ---------*/
100 genCfg->maxUe = duCfgParam.maxUe;
101 genCfg->maxKwuSaps = 2;
102 genCfg->maxUdxSaps = 1;
103 genCfg->rlcMode = (inst == RLC_UL_INST) ?
104 LKW_RLC_MODE_UL : LKW_RLC_MODE_DL;
106 genCfg->maxRguSaps = DEFAULT_CELLS;
108 /*----------- Fill lmPst
109 * Parameters ---------*/
110 genCfg->lmPst.dstProcId = DU_PROC;
111 genCfg->lmPst.srcProcId = DU_PROC;
112 genCfg->lmPst.dstEnt = ENTDUAPP;
113 genCfg->lmPst.dstInst = DU_INST;
114 genCfg->lmPst.srcEnt = ENTKW;
115 genCfg->lmPst.srcInst = inst;
116 genCfg->lmPst.prior = PRIOR0;
117 genCfg->lmPst.route = RTESPEC;
118 genCfg->lmPst.region = (inst == RLC_UL_INST) ?
119 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
120 genCfg->lmPst.pool = RLC_POOL;
121 genCfg->lmPst.selector = ODU_SELECTOR_LC;
124 kwMngmt.hdr.msgType = TCFG;
125 kwMngmt.hdr.msgLen = 0;
126 kwMngmt.hdr.entId.ent = ENTKW;
127 kwMngmt.hdr.entId.inst = (Inst)0;
128 kwMngmt.hdr.elmId.elmnt = STGEN;
129 kwMngmt.hdr.seqNmb = 0;
130 kwMngmt.hdr.version = 0;
131 kwMngmt.hdr.transId = 0;
132 kwMngmt.hdr.response.prior = PRIOR0;
133 kwMngmt.hdr.response.route = RTESPEC;
134 kwMngmt.hdr.response.mem.region = (inst == RLC_UL_INST) ?
135 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
136 kwMngmt.hdr.response.mem.pool = DU_POOL;
137 kwMngmt.hdr.response.selector = ODU_SELECTOR_LC;
140 pst.selector = ODU_SELECTOR_LC;
141 pst.srcEnt = ENTDUAPP;
144 pst.dstProcId = DU_PROC;
145 pst.srcProcId = DU_PROC;
146 pst.region = duCb.init.region;
148 DU_LOG("\nDU_APP : RLC Gen Cfg Req sent for inst %d", inst);
150 /* Send the request to RLC */
151 cmPkLkwCfgReq(&pst, &kwMngmt);
156 /**************************************************************************
157 * @brief Function to fill configs required by RLC
161 * Function : duBuildRlcLsapCfg
164 * Initiates general Configs towards RLC
166 * @param[in] Inst Specifies if RLC UL or RLC DL instance
167 * @return ROK - success
170 ***************************************************************************/
171 S16 duBuildRlcLsapCfg(Ent ent, Inst inst, U8 lsapInst)
175 KwSapCfg *lSap = NULLP;
178 DU_SET_ZERO(&kwMngmt, sizeof(KwMngmt));
179 DU_SET_ZERO(&pst, sizeof(Pst));
182 kwMngmt.hdr.msgType = TCFG;
183 kwMngmt.hdr.entId.ent = ENTKW;
184 kwMngmt.hdr.response.mem.region = (inst == RLC_UL_INST) ?
185 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
187 kwMngmt.hdr.response.mem.pool = RLC_POOL;
190 pst.selector = ODU_SELECTOR_LC;
191 pst.srcEnt = ENTDUAPP;
193 pst.dstProcId = DU_PROC;
195 pst.srcProcId = DU_PROC;
196 pst.region = duCb.init.region;
197 lSap = &(kwMngmt.t.cfg.s.sap);
199 lSap->mem.region = (inst == RLC_UL_INST) ?
200 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
201 lSap->mem.pool = RLC_POOL;
203 lSap->bndTmrIntvl = 10;
204 lSap->priority = PRIOR0;
205 lSap->route = RTESPEC;
208 lSap->procId = DU_PROC;
210 lSap->inst = lsapInst;
211 lSap->sapId = lsapInst; /* SapId will be stored as suId in MAC */
212 lSap->selector = (inst == RLC_UL_INST) ? ODU_SELECTOR_LWLC : ODU_SELECTOR_TC;
213 kwMngmt.hdr.elmId.elmnt = STRGUSAP;
214 DU_LOG("\nDU_APP : RLC MAC Lower Sap Cfg Req sent for inst %d", inst);
219 lSap->procId = DU_PROC;
221 lSap->inst = (inst == RLC_UL_INST) ?
222 RLC_DL_INST : RLC_UL_INST;
224 lSap->selector = ODU_SELECTOR_LC;
225 kwMngmt.hdr.elmId.elmnt = STUDXSAP;
226 DU_LOG("\nDU_APP : RLC DL/UL Lower Sap Cfg Req sent for inst %d", inst);
229 cmPkLkwCfgReq(&pst, &kwMngmt);
233 /**************************************************************************
234 * @brief Function to fill configs required by RLC
238 * Function : duBuildRlcUsapCfg
241 * Initiates general Configs towards RLC
243 * @param[in] Inst Specifies if RLC UL or RLC DL instance
244 * @return ROK - success
247 ***************************************************************************/
248 S16 duBuildRlcUsapCfg(U8 elemId, Ent ent, Inst inst)
251 KwSapCfg *uSap = NULLP;
254 DU_SET_ZERO(&kwMngmt, sizeof(KwMngmt));
255 DU_SET_ZERO(&pst, sizeof(Pst));
257 uSap = &(kwMngmt.t.cfg.s.sap);
259 uSap->selector = ODU_SELECTOR_LC;
260 uSap->mem.region = (inst == RLC_UL_INST) ?
261 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
262 uSap->mem.pool = RLC_POOL;
265 uSap->procId = DU_PROC;
269 uSap->inst = (inst == RLC_UL_INST) ?
270 RLC_DL_INST : RLC_UL_INST;
271 uSap->bndTmrIntvl = 1000;
272 uSap->priority = PRIOR0;
273 uSap->route = RTESPEC;
276 kwMngmt.hdr.msgType = TCFG;
277 kwMngmt.hdr.entId.ent = ENTKW;
278 kwMngmt.hdr.elmId.elmnt = STUDXSAP;
279 kwMngmt.hdr.response.mem.region = (inst == RLC_UL_INST) ?
280 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
282 kwMngmt.hdr.response.mem.pool = RLC_POOL;
285 pst.selector = ODU_SELECTOR_LC;
286 pst.srcEnt = ENTDUAPP;
288 pst.dstProcId = DU_PROC;
290 pst.srcProcId = DU_PROC;
291 pst.region = duCb.init.region;
293 DU_LOG("\nDU_APP : RLC Kwu Upper Sap Cfg Req sent for inst %d", inst);
294 cmPkLkwCfgReq(&pst, &kwMngmt);
299 /**************************************************************************
300 * @brief Function to populate internal DS of DU APP
304 * Function : duProcCfgComplete
307 * Populates internal data structures of DU APP after
308 * receiving configurations.
311 * @return ROK - success
314 ***************************************************************************/
315 S16 duProcCfgComplete()
318 static U16 cellId = 0;
320 for(idx=0; idx< DEFAULT_CELLS; idx++)
322 DuCellCb *cell = NULLP;
323 DU_ALLOC(cell, sizeof(DuCellCb))
326 DU_LOG("\nDU_APP : Memory Allocation failed in duProcCfgComplete");
333 memset(cell, 0, sizeof(DuCellCb));
334 cell->cellId = ++cellId;
335 cell->cellInfo.nrEcgi.plmn.mcc[0] = PLMN_MCC0;
336 cell->cellInfo.nrEcgi.plmn.mcc[1] = PLMN_MCC1;
337 cell->cellInfo.nrEcgi.plmn.mcc[2] = PLMN_MCC2;
338 cell->cellInfo.nrEcgi.plmn.mnc[0] = PLMN_MNC0;
339 cell->cellInfo.nrEcgi.plmn.mnc[1] = PLMN_MNC1;
340 cell->cellInfo.nrEcgi.plmn.mnc[2] = PLMN_MNC2;
341 cell->cellInfo.nrEcgi.cellId = NR_CELL_ID;
342 cell->cellInfo.nrPci = NR_PCI;
343 cell->cellInfo.fiveGsTac = DU_TAC;
344 for(idx1=0; idx1<MAX_PLMN; idx1++)
346 cell->cellInfo.plmn[idx1].mcc[0] = PLMN_MCC0;
347 cell->cellInfo.plmn[idx1].mcc[1] = PLMN_MCC1;
348 cell->cellInfo.plmn[idx1].mcc[2] = PLMN_MCC2;
349 cell->cellInfo.plmn[idx1].mnc[0] = PLMN_MNC0;
350 cell->cellInfo.plmn[idx1].mnc[1] = PLMN_MNC1;
351 cell->cellInfo.plmn[idx1].mnc[2] = PLMN_MNC2;
353 cell->cellInfo.maxUe = duCfgParam.maxUe;
354 cell->cellStatus = CELL_OUT_OF_SERVICE;
355 nci = (U16)cell->cellInfo.nrEcgi.cellId;
357 duCb.cfgCellLst[nci-1] = cell;
363 //Start layer configs
364 ret = duSendRlcUlCfg();
368 /**************************************************************************
369 * @brief Function to invoke DU Layer Configs
373 * Function : duSendRlcUlCfg
376 * Initiates Configs towards layers of DU
379 * @return ROK - success
382 ***************************************************************************/
387 duBuildRlcCfg((Inst)RLC_UL_INST);
388 for(cellIdx = 0; cellIdx < DEFAULT_CELLS; cellIdx++)
390 duBuildRlcLsapCfg(ENTRG, (Inst)RLC_UL_INST, cellIdx);
392 duBuildRlcLsapCfg(ENTKW, (Inst)RLC_UL_INST, 0);
397 /**************************************************************************
398 * @brief Function to invoke DU Layer Configs
402 * Function : duSendRlcDlCfg
405 * Initiates Configs towards layers of DU
408 * @return ROK - success
411 ***************************************************************************/
416 duBuildRlcCfg((Inst)RLC_DL_INST);
417 duBuildRlcUsapCfg(STUDXSAP, ENTKW, (Inst)RLC_DL_INST);
418 for(cellIdx = 0; cellIdx < DEFAULT_CELLS; cellIdx++)
420 duBuildRlcLsapCfg(ENTRG, (Inst)RLC_DL_INST, cellIdx);
425 /**************************************************************************
426 * @brief Function to handle Config Confirm from RLC
430 * Function : duHdlRlcCfgComplete
433 * Handles Gen Config Confirm from RLC
435 * @param[in] Pst *pst, Post structure of the primitive.
436 * @param[in] KwMngmt *cfm, Unpacked primitive info received from RLC
437 * @return ROK - success
440 ***************************************************************************/
441 S16 duHdlRlcCfgComplete(Pst *pst, KwMngmt *cfm)
444 if (pst->srcInst == RLC_UL_INST)
446 ret = duProcRlcUlCfgComplete(pst, cfm);
450 ret = duProcRlcDlCfgComplete(pst, cfm);
455 /**************************************************************************
456 * @brief Function to handle Control Config Confirm from RLC
460 * Function : duHdlRlcCntrlCfgComplete
463 * Handles Control Config Confirm from RLC
465 * @param[in] Pst *pst, Post structure of the primitive.
466 * @param[in] KwMngmt *cfm, Unpacked primitive info received from RLC
467 * @return ROK - success
470 ***************************************************************************/
471 S16 duHdlRlcCntrlCfgComplete(Pst *pst, KwMngmt *cntrl)
475 if (cntrl->cfm.status == LCM_PRIM_OK)
477 switch (cntrl->hdr.elmId.elmnt)
481 if (pst->srcInst == RLC_DL_INST)
483 DU_LOG("\nDU_APP : BIND OF RLC DL TO MAC (RGU) SAP SUCCESSFUL");
485 if(macCfgInst < DEFAULT_CELLS)
488 duBindUnbindRlcToMacSap((Inst) RLC_DL_INST, ABND);
492 duBindUnbindRlcToMacSap((Inst) RLC_UL_INST, ABND);
497 DU_LOG("\nDU_APP : BIND OF RLC UL TO MAC (RGU) SAP SUCCESSFUL");
499 if(macCfgInst < DEFAULT_CELLS)
501 duBindUnbindRlcToMacSap((Inst) RLC_UL_INST, ABND);
515 /**************************************************************************
516 * @brief Function to handle Config Confirm from RLC UL
520 * Function : duHdlRlcUlCfgComplete
523 * Handles Config Confirm from RLC UL
525 * @param[in] Pst *pst, Post structure of the primitive.
526 * @param[in] KwMngmt *cfm, Unpacked primitive info received from RLC UL
527 * @return ROK - success
530 ***************************************************************************/
531 S16 duProcRlcUlCfgComplete(Pst *pst, KwMngmt *cfm)
535 DU_LOG("\nDU_APP : RLC UL Cfg Status %d", cfm->cfm.status);
536 if (cfm->cfm.status == LCM_PRIM_OK)
538 switch(cfm->hdr.elmId.elmnt)
542 rlcUlCfg |= RLC_GEN_CFG;
548 if(numRlcMacSaps == DEFAULT_CELLS)
550 rlcUlCfg |= RLC_MAC_SAP_CFG;
557 rlcUlCfg |= RLC_UDX_SAP_CFG;
564 DU_LOG("\nDU_APP : RLC UL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt);
565 if(rlcUlCfg == DU_RLC_UL_CONFIGURED)
569 //Start configuration of RLC DL
576 DU_LOG("\nDU_APP : Config confirm NOK from RLC UL");
582 /**************************************************************************
583 * @brief Function to handle Config Confirm from RLC DL
587 * Function : duHdlRlcDlCfgComplete
590 * Handles Config Confirm from RLC DL
592 * @param[in] Pst *pst, Post structure of the primitive.
593 * @param[in] KwMngmt *cfm, Unpacked primitive info received from RLC DL
594 * @return ROK - success
597 ***************************************************************************/
598 S16 duProcRlcDlCfgComplete(Pst *pst, KwMngmt *cfm)
600 DU_LOG("\nDU_APP : RLC DL Cfg Status %d", cfm->cfm.status);
601 if (cfm->cfm.status == LCM_PRIM_OK)
603 switch(cfm->hdr.elmId.elmnt)
607 rlcDlCfg |= RLC_GEN_CFG;
613 if(numRlcMacSaps == DEFAULT_CELLS)
615 rlcDlCfg |= RLC_MAC_SAP_CFG;
622 rlcDlCfg |= RLC_UDX_SAP_CFG;
630 DU_LOG("\nDU_APP : RLC DL Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt);
631 if(rlcDlCfg == DU_RLC_DL_CONFIGURED)
634 //Start configuration of MAC
641 DU_LOG("\nDU_APP : Config confirm NOK from RLC DL");
646 /**************************************************************************
647 * @brief Function to send configs to MAC
651 * Function : duSendMacCfg
654 * Initiates Configs towards MAC layer
657 * @return ROK - success
660 ***************************************************************************/
664 duBuildMacUsapCfg(RLC_UL_INST);
665 duBuildMacUsapCfg(RLC_DL_INST);
670 /**************************************************************************
671 * @brief Function to fill gen config required by MAC
675 * Function : duBuildMacGenCfg
678 * Initiates general Configs towards MAC
681 * @return ROK - success
684 ***************************************************************************/
685 S16 duBuildMacGenCfg()
688 RgGenCfg *genCfg=NULLP;
691 DU_SET_ZERO(&pst, sizeof(Pst));
692 DU_SET_ZERO(&rgMngmt, sizeof(RgMngmt));
694 genCfg = &(rgMngmt.t.cfg.s.genCfg);
696 /*----------- Fill General Configuration Parameters ---------*/
697 genCfg->mem.region = MAC_MEM_REGION;
698 genCfg->mem.pool = RG_POOL;
700 genCfg->numRguSaps = 2;
702 genCfg->lmPst.dstProcId = DU_PROC;
703 genCfg->lmPst.srcProcId = DU_PROC;
704 genCfg->lmPst.dstEnt = ENTDUAPP;
705 genCfg->lmPst.dstInst = 0;
706 genCfg->lmPst.srcEnt = ENTRG;
707 genCfg->lmPst.srcInst = macCfgInst;
708 genCfg->lmPst.prior = PRIOR0;
709 genCfg->lmPst.route = RTESPEC;
710 genCfg->lmPst.region = MAC_MEM_REGION;
711 genCfg->lmPst.pool = RG_POOL;
712 genCfg->lmPst.selector = ODU_SELECTOR_LC;
715 rgMngmt.hdr.msgType = TCFG;
716 rgMngmt.hdr.msgLen = 0;
717 rgMngmt.hdr.entId.ent = ENTRG;
718 rgMngmt.hdr.entId.inst = (Inst)0;
719 rgMngmt.hdr.elmId.elmnt = STGEN;
720 rgMngmt.hdr.seqNmb = 0;
721 rgMngmt.hdr.version = 0;
722 rgMngmt.hdr.transId = 0;
724 rgMngmt.hdr.response.prior = PRIOR0;
725 rgMngmt.hdr.response.route = RTESPEC;
726 rgMngmt.hdr.response.mem.region = MAC_MEM_REGION;
727 rgMngmt.hdr.response.mem.pool = RG_POOL;
728 rgMngmt.hdr.response.selector = ODU_SELECTOR_LC;
731 pst.selector = ODU_SELECTOR_LC;
732 pst.srcEnt = ENTDUAPP;
734 pst.dstInst = macCfgInst;
735 pst.dstProcId = DU_PROC;
736 pst.srcProcId = DU_PROC;
737 pst.region = duCb.init.region;
739 DU_LOG("\nDU_APP : MAC Gen Cfg Req sent");
741 /* Send the request to MAC */
742 cmPkLrgCfgReq(&pst, &rgMngmt);
747 /**************************************************************************
748 * @brief Function to fill USAP config required by MAC
752 * Function : duBuildMacUsapCfg
755 * Initiates USAP Configs towards MAC
757 * @param[in] SpId Specifies if RLC UL or RLC DL instance
758 * @return ROK - success
761 ***************************************************************************/
762 S16 duBuildMacUsapCfg(SpId sapId)
765 RgUpSapCfg *uSap = NULLP;
768 DU_SET_ZERO(&pst, sizeof(Pst));
769 DU_SET_ZERO(&rgMngmt, sizeof(RgMngmt));
771 uSap = &(rgMngmt.t.cfg.s.rguSap);
773 uSap->mem.region = MAC_MEM_REGION;
774 uSap->mem.pool = RG_POOL;
777 uSap->procId = DU_PROC;
780 uSap->prior = PRIOR0;
781 uSap->route = RTESPEC;
782 uSap->selector = ODU_SELECTOR_LC ;
785 rgMngmt.hdr.msgType = TCFG;
786 rgMngmt.hdr.entId.ent = ENTRG;
787 rgMngmt.hdr.entId.inst = (Inst)0;
788 rgMngmt.hdr.elmId.elmnt = STRGUSAP;
789 rgMngmt.hdr.response.mem.region = MAC_MEM_REGION;
790 rgMngmt.hdr.response.mem.pool = RG_POOL;
793 pst.selector = ODU_SELECTOR_LC;
794 pst.srcEnt = ENTDUAPP;
796 pst.dstInst = macCfgInst;
797 pst.dstProcId = DU_PROC;
798 pst.srcProcId = DU_PROC;
799 pst.region = duCb.init.region;
801 DU_LOG("\nDU_APP : MAC Rgu USap Cfg Req sent");
803 /* Send the request to MAC */
804 cmPkLrgCfgReq(&pst, &rgMngmt);
809 /**************************************************************************
810 * @brief Function to handle Config Confirm from MAC
814 * Function : duHdlMacCfgComplete
817 * Handles Gen Config Confirm from MAC
819 * @param[in] Pst *pst, Post structure of the primitive.
820 * @param[in] RgMngmt *cfm, Unpacked primitive info received from MAC
821 * @return ROK - success
824 ***************************************************************************/
825 S16 duHdlMacCfgComplete(Pst *pst, RgMngmt *cfm)
829 if (cfm->cfm.status == LCM_PRIM_OK)
831 switch (cfm->hdr.elmId.elmnt)
835 macCfg |= MAC_GEN_CFG;
840 macCfg |= MAC_SAP_CFG;
847 DU_LOG("\nDU_APP : MAC Cfg Cfm received for the element %d ",cfm->hdr.elmId.elmnt);
848 if(macCfg == MAC_CONFIGURED && numRlcMacSaps == MAX_MAC_SAP)
851 DU_LOG("\nDU_APP : Completed sending Configs");
853 duBindUnbindRlcToMacSap(RLC_DL_INST, ABND);
859 DU_LOG("\nDU_APP : Config confirm NOK from MAC");
865 /**************************************************************************
866 * @brief Function to bind/unbind RLC to MAC SAP
870 * Function : duBindUnbindRlcToMacSap
873 * Initiates Bind/Unbind from RLC to MAC
875 * @param[in] Inst Specifies if RLC UL or RLC DL instance
876 * @param[in] action Specifies if action is bind or unbind
877 * @return ROK - success
880 ***************************************************************************/
881 S16 duBindUnbindRlcToMacSap(U8 inst, U8 action)
883 KwCntrl *cntrl = NULLP;
887 TRC2(smBindKwToRguSap)
889 DU_SET_ZERO(&kwMngmt, sizeof(KwMngmt));
890 DU_SET_ZERO(&pst, sizeof(Pst));
894 DU_LOG("\nDU_APP : Cntrl Req to RLC inst %d to bind MAC sap", inst);
898 DU_LOG("\nDU_APP : Cntrl Req to RLC inst %d to unbind MAC sap", inst);
900 cntrl = &(kwMngmt.t.cntrl);
902 cntrl->action = action;
903 cntrl->subAction = DU_ZERO_VAL;
904 cntrl->s.sapCntrl.suId = macCfgInst;
905 cntrl->s.sapCntrl.spId = inst;
908 kwMngmt.hdr.msgType = TCNTRL;
909 kwMngmt.hdr.entId.ent = ENTKW;
910 kwMngmt.hdr.entId.inst = inst;
911 kwMngmt.hdr.elmId.elmnt = 186; /* ambiguous defines in lkw.h and lrg.h so direct hardcoded*/
912 kwMngmt.hdr.response.mem.region = (inst == RLC_UL_INST) ?
913 RLC_UL_MEM_REGION:RLC_DL_MEM_REGION;
914 kwMngmt.hdr.response.mem.pool = RLC_POOL;
917 pst.selector = ODU_SELECTOR_LC;
918 pst.srcEnt = ENTDUAPP;
920 pst.dstProcId = DU_PROC;
922 pst.srcProcId = DU_PROC;
923 pst.region = duCb.init.region;
925 cmPkLkwCntrlReq(&pst, &kwMngmt);
929 /*******************************************************************
931 * @brief Handles SCTP notifications
935 * Function : duSctpNtfyHdl
938 * Handles SCTP notification
940 * @params[in] Message Buffer
943 * @return ROK - success
946 * ****************************************************************/
948 S16 duSctpNtfyHdl(Buffer *mBuf, CmInetSctpNotification *ntfy)
950 if(f1Params.assocId == ntfy->u.assocChange.assocId)
952 if(BuildAndSendF1SetupReq() != ROK)
957 else if(ricParams.assocId == ntfy->u.assocChange.assocId)
959 if(BuildAndSendE2SetupReq() != ROK)
966 DU_LOG("\nDU_APP : Invalid assocId %d received", ntfy->u.assocChange.assocId);
972 /*******************************************************************
974 * @brief Fills Pst struct for ENTEGTP
978 * Function : duFillEgtpPst
981 * Fills Pst struct for ENTEGTP
984 * @return ROK - success
987 * ****************************************************************/
988 S16 duFillEgtpPst(Pst *pst, Event event)
990 cmMemset((U8 *)pst, 0, sizeof(Pst));
991 pst->srcEnt = (Ent)ENTDUAPP;
992 pst->srcInst = (Inst)DU_INST;
993 pst->srcProcId = DU_PROC;
994 pst->dstEnt = (Ent)ENTEGTP;
995 pst->dstInst = (Inst)EGTP_INST;
996 pst->dstProcId = pst->srcProcId;
998 pst->selector = ODU_SELECTOR_LC;
1005 /*******************************************************************
1007 * @brief Function to configure EGTP
1011 * Function : duBuildEgtpCfgReq
1014 * Function to configure EGTP
1017 * @return ROK - success
1020 * ****************************************************************/
1022 S16 duBuildEgtpCfgReq()
1027 DU_LOG("\nDU_APP : Sending EGTP config request");
1029 cmMemset((U8 *)&egtpCfg, 0, sizeof(EgtpConfig));
1030 cmMemcpy((U8 *)&egtpCfg, (U8 *)&duCfgParam.egtpParams, (PTR)sizeof(EgtpConfig));
1032 duFillEgtpPst(&pst, EVTCFGREQ);
1033 packEgtpCfgReq(&pst, egtpCfg);
1038 /*******************************************************************
1040 * @brief Function to configure EGTP
1044 * Function : duBuildEgtpCfgReq
1047 * Function to configure EGTP
1050 * @return ROK - success
1053 * ****************************************************************/
1054 S16 duHdlEgtpCfgComplete(CmStatus cfm)
1058 if(cfm.status == LCM_PRIM_OK)
1060 DU_LOG("\nDU_APP : EGTP configuraton complete");
1062 duSendEgtpSrvOpenReq();
1067 DU_LOG("\nDU_APP : EGTP configuraton failed");
1074 /*******************************************************************
1076 * @brief Sends server open request to EGTP
1080 * Function : duSendEgtpSrvOpenReq
1083 * Sends server open request to EGTP
1086 * @return ROK - success
1089 * ****************************************************************/
1091 S16 duSendEgtpSrvOpenReq()
1095 DU_LOG("\nDU_APP : Sending EGTP server open request");
1097 duFillEgtpPst(&pst, EVTSRVOPENREQ);
1098 packEgtpSrvOpenReq(&pst);
1103 /*******************************************************************
1105 * @brief Handles server open confirmation
1109 * Function : duHdlEgtpSrvOpenComplete
1112 * Handles server open confirmation
1115 * @return ROK - success
1118 *****************************************************************/
1120 S16 duHdlEgtpSrvOpenComplete(CmStatus cfm)
1124 if(cfm.status == LCM_PRIM_OK)
1126 DU_LOG("\nDU_APP : EGTP server opened successfully");
1128 duSendEgtpTnlMgmtReq(EGTP_TNL_MGMT_ADD, EGTP_LCL_TEID, EGTP_REM_TEID);
1133 DU_LOG("\nDU_APP : EGTP server opening failed");
1140 /*******************************************************************
1142 * @brief Sends tunnel management request
1146 * Function : duSendEgtpTnlMgmtReq
1149 * Builds and sends tunnel management request to EGTP
1151 * @params[in] Action
1152 * Local tunnel endpoint id
1153 * Remote tunnel endpoint id
1154 * @return ROK - success
1157 * ****************************************************************/
1159 S16 duSendEgtpTnlMgmtReq(U8 action, U32 lclTeid, U32 remTeid)
1164 tnlEvt.action = action;
1165 tnlEvt.lclTeid = lclTeid;
1166 tnlEvt.remTeid = remTeid;
1168 DU_LOG("\nDU_APP : Sending EGTP tunnel management request");
1170 duFillEgtpPst(&pst, EVTTNLMGMTREQ);
1171 packEgtpTnlMgmtReq(&pst, tnlEvt);
1176 /*******************************************************************
1178 * @brief Handles Tunnel management confirm
1182 * Function : duHdlEgtpTnlMgmtCfm
1185 * Handles tunnel management confirm received from Egtp
1187 * @params[in] Tunnel Event
1188 * @return ROK - success
1191 * ****************************************************************/
1192 S16 duHdlEgtpTnlMgmtCfm(EgtpTnlEvt tnlEvtCfm)
1196 if(tnlEvtCfm.cfmStatus.status == LCM_PRIM_OK)
1198 DU_LOG("\nDU_APP : Tunnel management confirm OK");
1201 duSendUeCreateReqToRlc();
1203 duSendEgtpTestData();
1208 DU_LOG("\nDU_APP : Tunnel management failed");
1215 S16 duSendEgtpDatInd(Buffer *mBuf)
1219 /* Fill EGTP header */
1220 egtpMsg.msgHdr.msgType = EGTPU_MSG_GPDU;
1221 egtpMsg.msgHdr.nPdu.pres = FALSE;
1222 egtpMsg.msgHdr.seqNum.pres = FALSE;
1223 egtpMsg.msgHdr.extHdr.udpPort.pres = FALSE;
1224 egtpMsg.msgHdr.extHdr.pdcpNmb.pres = FALSE;
1225 egtpMsg.msgHdr.teId = 1;
1228 egtpHdlDatInd(egtpMsg);
1235 /*******************************************************************
1237 * @brief Simulate UL Data for intial test
1241 * Function : duSendEgtpTestData
1244 * Simulate UL data for initial test
1247 * @return ROK - success
1250 * ****************************************************************/
1251 S16 duSendEgtpTestData()
1253 char data[30] = "This is EGTP data from DU";
1258 if(SGetMsg(DU_APP_MEM_REGION, DU_POOL, &mBuf) == ROK)
1260 if(SAddPstMsgMult((Data *)data, datSize, mBuf) != ROK)
1262 DU_LOG("\nDU_APP : SAddPstMsgMult failed");
1269 DU_LOG("\nDU_APP : Failed to allocate memory");
1273 /* filling IPv4 header */
1278 SFndLenMsg(mBuf, &mLen);
1280 cmMemset((U8 *)&ipv4Hdr, 0, sizeof(CmIpv4Hdr));
1281 ipv4Hdr.length = CM_IPV4_HDRLEN + mLen;
1282 ipv4Hdr.hdrVer = 0x45;
1284 ipv4Hdr.srcAddr = CM_INET_NTOH_U32(duCfgParam.egtpParams.localIp.ipV4Addr);
1285 ipv4Hdr.destAddr = CM_INET_NTOH_U32(duCfgParam.egtpParams.destIp.ipV4Addr);
1287 /* Packing IPv4 header into buffer */
1289 Data revPkArray[CM_IPV4_HDRLEN];
1290 Data pkArray[CM_IPV4_HDRLEN];
1292 /* initialize locals */
1294 cmMemset(revPkArray, 0, CM_IPV4_HDRLEN);
1295 cmMemset(pkArray, 0, CM_IPV4_HDRLEN);
1297 /* Pack Header Version */
1298 pkArray[cnt++] = ipv4Hdr.hdrVer;
1301 pkArray[cnt++] = ipv4Hdr.tos;
1303 pkArray[cnt++] = (Data)GetHiByte(ipv4Hdr.length);
1304 pkArray[cnt++] = (Data)GetLoByte(ipv4Hdr.length);
1307 pkArray[cnt++] = (Data) GetHiByte(ipv4Hdr.id);
1308 pkArray[cnt++] = (Data) GetLoByte(ipv4Hdr.id);
1311 pkArray[cnt++] = (Data)GetHiByte(ipv4Hdr.off);
1312 pkArray[cnt++] = (Data)GetLoByte(ipv4Hdr.off);
1315 pkArray[cnt++] = ipv4Hdr.ttl;
1318 pkArray[cnt++] = ipv4Hdr.proto;
1321 pkArray[cnt++] = (Data)GetHiByte(ipv4Hdr.chkSum);
1322 pkArray[cnt++] = (Data)GetLoByte(ipv4Hdr.chkSum);
1324 /* Pack Source Address */
1325 pkArray[cnt++] = (Data)GetHiByte(GetHiWord(ipv4Hdr.srcAddr));
1326 pkArray[cnt++] = (Data)GetLoByte(GetHiWord(ipv4Hdr.srcAddr));
1327 pkArray[cnt++] = (Data)GetHiByte(GetLoWord(ipv4Hdr.srcAddr));
1328 pkArray[cnt++] = (Data)GetLoByte(GetLoWord(ipv4Hdr.srcAddr));
1330 /* Pack Destination Address */
1331 pkArray[cnt++] = (Data)GetHiByte(GetHiWord(ipv4Hdr.destAddr));
1332 pkArray[cnt++] = (Data)GetLoByte(GetHiWord(ipv4Hdr.destAddr));
1333 pkArray[cnt++] = (Data)GetHiByte(GetLoWord(ipv4Hdr.destAddr));
1334 pkArray[cnt++] = (Data)GetLoByte(GetLoWord(ipv4Hdr.destAddr));
1336 for (idx = 0; idx < CM_IPV4_HDRLEN; idx++)
1337 revPkArray[idx] = pkArray[CM_IPV4_HDRLEN - idx -1];
1339 /* this function automatically reverses revPkArray */
1340 ret = SAddPreMsgMult(revPkArray, (MsgLen)cnt, mBuf);
1342 duSendEgtpDatInd(mBuf);
1346 #endif /* EGTP_TEST */
1349 /**************************************************************************
1350 * @brief Function to send configs to SCH
1354 * Function : duSendSchCfg
1357 * Sends general config to Scheduler via MAC layer
1360 * @return ROK - success
1363 ***************************************************************************/
1367 RgSchInstCfg *cfg = NULLP;
1370 DU_SET_ZERO(&pst, sizeof(Pst));
1371 DU_SET_ZERO(&rgMngmt, sizeof(RgMngmt));
1373 cfg = &(rgMngmt.t.cfg.s.schInstCfg);
1375 /* Filling of Instance Id */
1376 cfg->instId = DEFAULT_CELLS + 1;
1377 /* Filling of Gen config */
1378 cfg->genCfg.mem.region = MAC_MEM_REGION;
1379 cfg->genCfg.mem.pool = RG_POOL;
1380 cfg->genCfg.tmrRes = 10;
1383 cfg->genCfg.forceCntrlSrbBoOnPCel = FALSE;
1384 cfg->genCfg.isSCellActDeactAlgoEnable = TRUE;
1386 cfg->genCfg.startCellId = 1;
1387 cfg->genCfg.lmPst.dstProcId = DU_PROC;
1388 cfg->genCfg.lmPst.srcProcId = DU_PROC;
1389 cfg->genCfg.lmPst.dstEnt = ENTDUAPP;
1390 cfg->genCfg.lmPst.dstInst = DU_INST;
1391 cfg->genCfg.lmPst.srcEnt = ENTRG;
1392 cfg->genCfg.lmPst.srcInst = DEFAULT_CELLS + 1;
1393 cfg->genCfg.lmPst.prior = PRIOR0;
1394 cfg->genCfg.lmPst.route = RTESPEC;
1395 cfg->genCfg.lmPst.region = MAC_MEM_REGION;
1396 cfg->genCfg.lmPst.pool = RG_POOL;
1397 cfg->genCfg.lmPst.selector = ODU_SELECTOR_LC;
1400 rgMngmt.hdr.msgType = TCFG;
1401 rgMngmt.hdr.entId.ent = ENTRG;
1402 rgMngmt.hdr.entId.inst = DU_INST;
1403 rgMngmt.hdr.elmId.elmnt = STSCHINST;
1404 rgMngmt.hdr.response.mem.region = MAC_MEM_REGION;
1405 rgMngmt.hdr.response.mem.pool = RG_POOL;
1408 pst.selector = ODU_SELECTOR_LC;
1409 pst.srcEnt = ENTDUAPP;
1411 pst.dstProcId = DU_PROC;
1412 pst.srcProcId = DU_PROC;
1413 pst.srcInst = DU_INST;
1415 pst.region = duCb.init.region;
1416 pst.event = (Event) EVTMACSCHGENCFGREQ;
1418 DU_LOG("\nDU_APP : MAC Sch Cfg sent");
1420 /* Send the request to MAC */
1421 cmPkLrgSchCfgReq(&pst, &rgMngmt);
1427 /**************************************************************************
1428 * @brief Function to configure SCTP params and
1429 * responsible for F1 and E2 interfaces
1433 * Function : duLayerConfigComplete
1436 * Configures SCTP Params and responsible for handling
1437 * F1 and E2 interface.
1440 * @return ROK - success
1443 ***************************************************************************/
1444 S16 duLayerConfigComplete()
1448 DU_LOG("\nDU_APP : Configuring all Layer is complete");
1450 if((ret = duSctpCfgReq(duCfgParam.sctpParams)) != ROK)
1452 DU_LOG("\nDU_APP : Failed configuring Sctp Params");
1455 if((ret = duSctpAssocReq(F1_INTERFACE)) != ROK)
1457 DU_LOG("\nDU_APP : Failed to send AssocReq F1");
1460 if((ret = duSctpAssocReq(E2_INTERFACE)) != ROK)
1462 DU_LOG("\nDU_APP : Failed to send AssocReq E2");
1469 /**************************************************************************
1470 * @brief Function to handle SCH Config Confirm from MAC
1474 * Function : duHdlSchCfgComplete
1477 * Handles Scheduler Gen Config Confirm from MAC
1479 * @param[in] Pst *pst, Post structure of the primitive.
1480 * @param[in] RgMngmt *cfm, Unpacked primitive info received from MAC
1481 * @return ROK - success
1484 ***************************************************************************/
1485 S16 duHdlSchCfgComplete(Pst *pst, RgMngmt *cfm)
1487 if (cfm->cfm.status == LCM_PRIM_OK)
1489 switch (cfm->hdr.elmId.elmnt)
1493 DU_LOG("\nDU_APP : Received SCH CFG CFM at DU APP");
1500 duLayerConfigComplete();
1501 duBuildEgtpCfgReq();
1505 /*******************************************************************
1507 * @brief Sends Slot indication to EGTP
1511 * Function : duSendEgtpSlotInd
1514 * Sends Slot indication to EGTP
1517 * @return ROK - success
1520 * ****************************************************************/
1521 S16 duSendEgtpSlotInd()
1525 duFillEgtpPst(&pst, EVTSLOTIND);
1526 packEgtpSlotInd(&pst);
1532 /**************************************************************************
1533 * @brief Function to fill and send MacCellconfig
1537 * Function : duBuildAndSendMacCellCfg
1540 * Initiates MAC Configs towards MAC
1543 * @return ROK - success
1546 ***************************************************************************/
1547 S16 duBuildAndSendMacCellCfg()
1550 DU_SET_ZERO(&pst, sizeof(Pst));
1551 MacCellCfg *duMacCellCfg = NULLP;
1553 DU_ALLOC_SHRABL_BUF(duMacCellCfg, sizeof(MacCellCfg));
1554 if(duMacCellCfg == NULLP)
1559 /* store the address in the duCb so that we can free on confirm msg */
1560 duCb.duMacCellCfg = duMacCellCfg;
1562 /* copy the mac config structure from duCfgParams */
1563 memcpy(duMacCellCfg,&duCfgParam.macCellCfg,sizeof(MacCellCfg));
1566 pst.selector = ODU_SELECTOR_LWLC;
1567 pst.srcEnt = ENTDUAPP;
1571 pst.dstProcId = DU_PROC;
1572 pst.srcProcId = DU_PROC;
1573 pst.region = DU_APP_MEM_REGION;
1575 pst.event = EVENT_MAC_CELL_CONFIG_REQ;
1577 /* Send MAC cell config to MAC */
1578 return (*packMacCellCfgOpts[pst.selector])(&pst, duMacCellCfg);
1581 /**************************************************************************
1582 * @brief Function to Handle MAC cell config confirm
1586 * Function : duHandleMacCellCfgCfm
1589 * Initiates general Configs towards MAC
1592 * @return ROK - success
1595 ***************************************************************************/
1596 int duHandleMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
1598 uint8_t actvCellIdx = 0;
1601 if(macCellCfgCfm->rsp == ROK)
1603 for(actvCellIdx = 0 ; actvCellIdx <duCb.numActvCells ; actvCellIdx++)
1605 if(macCellCfgCfm->cellId == duCb.actvCellLst[actvCellIdx]->cellId)
1607 duCb.duMacCellCfg = NULLP;
1608 /* Build and send GNB-DU config update */
1609 ret = BuildAndSendDUConfigUpdate();
1611 /* TODO: Trigger cell start req once cell up slot ind is received*/
1612 /* Build and Send Cell Start Req to MAC */
1613 ret = duBuildAndSendMacCellStartReq();
1620 DU_LOG("\nMac cell cfg failed");
1626 /*******************************************************************
1628 * @brief Handles slot indication from MAC
1632 * Function : duHandleSlotInd
1635 * Handles slot indication from MAC
1637 * @params[in] Post structure pointer
1639 * @return ROK - success
1642 * ****************************************************************/
1643 uint16_t duHandleSlotInd(Pst *pst, SlotInfo *slotInfo)
1646 DU_LOG("\nDU APP : Slot Indication received");
1648 if(slotInfo->cellId <=0 || slotInfo->cellId > DU_MAX_CELLS)
1650 DU_LOG("\nDU APP : Invalid Cell Id %d", slotInfo->cellId);
1652 if(!duCb.actvCellLst[slotInfo->cellId-1]->firstSlotIndRcvd)
1654 duCb.actvCellLst[slotInfo->cellId-1]->firstSlotIndRcvd = true;
1655 if((duCb.actvCellLst[slotInfo->cellId-1] != NULL) && \
1656 (duCb.actvCellLst[slotInfo->cellId-1]->cellStatus == \
1657 ACTIVATION_IN_PROGRESS))
1659 DU_LOG("\nDU APP : 5G-NR Cell %d is UP", slotInfo->cellId);
1660 duCb.actvCellLst[slotInfo->cellId-1]->cellStatus = ACTIVATED;
1665 /* TODO : Slot Indication to be moved out of EGTP_TEST when
1666 * data path is established */
1668 duSendEgtpSlotInd();
1671 if((pst->selector == ODU_SELECTOR_LWLC) || (pst->selector == ODU_SELECTOR_TC))
1672 DU_FREE_SHRABL_BUF(MAC_MEM_REGION, pst->pool, slotInfo, sizeof(SlotInfo));
1677 /*******************************************************************
1679 * @brief Builds and sends cell start request to MAC
1683 * Function : duBuildAndSendMacCellStartReq
1686 * Builds and sends cell start request to MAC
1689 * @return ROK - success
1692 * ****************************************************************/
1693 uint16_t duBuildAndSendMacCellStartReq()
1696 MacCellStartInfo *cellStartInfo = NULL;
1698 DU_LOG("\nDU APP : Building and Sending cell start request to MAC");
1700 /* Send Cell Start Request to MAC */
1701 DU_ALLOC_SHRABL_BUF(cellStartInfo, sizeof(MacCellStartInfo));
1704 DU_LOG("\nDU APP : Memory alloc failed while building cell start request");
1708 for(uint8_t id = 0; id < DU_MAX_CELLS; id++)
1710 if(duCb.actvCellLst[id])
1712 duCb.actvCellLst[id]->firstSlotIndRcvd = FALSE;
1713 cellStartInfo->cellId = duCb.actvCellLst[id]->cellInfo.nrEcgi.cellId;
1716 pst.selector = ODU_SELECTOR_LWLC;
1717 pst.srcEnt = ENTDUAPP;
1721 pst.dstProcId = DU_PROC;
1722 pst.srcProcId = DU_PROC;
1723 pst.region = DU_APP_MEM_REGION;
1725 pst.event = EVENT_MAC_CELL_START_REQ;
1727 return (*packMacCellStartReqOpts[pst.selector])(&pst, cellStartInfo);
1733 /*******************************************************************
1735 * @brief Builds and sends cell stop request to MAC
1739 * Function : duBuildAndSendMacCellStopReq
1742 * Builds and sends cell stop request to MAC
1745 * @return ROK - success
1748 * ****************************************************************/
1749 uint16_t duBuildAndSendMacCellStopReq()
1752 MacCellStopInfo *cellStopInfo = NULL;
1754 DU_LOG("\nDU APP : Building and Sending cell stop request to MAC");
1756 /* Send Cell Stop Request to MAC */
1757 DU_ALLOC_SHRABL_BUF(cellStopInfo, sizeof(MacCellStopInfo));
1760 DU_LOG("\nDU APP : Memory alloc failed while building cell stop request");
1763 cellStopInfo->cellId = duCb.actvCellLst[0]->cellId;
1766 pst.selector = ODU_SELECTOR_LWLC;
1767 pst.srcEnt = ENTDUAPP;
1771 pst.dstProcId = DU_PROC;
1772 pst.srcProcId = DU_PROC;
1773 pst.region = DU_APP_MEM_REGION;
1775 pst.event = EVENT_MAC_CELL_STOP_REQ;
1777 return (*packMacCellStopReqOpts[pst.selector])(&pst, cellStopInfo);
1780 /*******************************************************************
1782 * @brief Handles stop indication from MAC
1786 * Function : duHandleStopInd
1789 * Handles stop indication from MAC
1791 * @params[in] Post structure pointer
1792 * @return ROK - success
1795 * ****************************************************************/
1796 uint16_t duHandleStopInd(Pst *pst, MacCellStopInfo *cellStopId)
1798 if(cellStopId->cellId <=0 || cellStopId->cellId > DU_MAX_CELLS)
1800 DU_LOG("\nDU APP : Invalid Cell Id %d", cellStopId->cellId);
1802 if(duCb.actvCellLst[cellStopId->cellId-1] != NULL)
1804 if(duCb.actvCellLst[cellStopId->cellId-1]->firstSlotIndRcvd)
1806 duCb.actvCellLst[cellStopId->cellId-1]->firstSlotIndRcvd = false;
1807 if((duCb.actvCellLst[cellStopId->cellId-1]->cellStatus == \
1810 DU_LOG("\nDU APP : 5G-NR Cell %d is DOWN", cellStopId->cellId);
1811 duCb.actvCellLst[cellStopId->cellId-1]->cellStatus = DELETION_IN_PROGRESS;
1815 if((pst->selector == ODU_SELECTOR_LWLC) || (pst->selector == ODU_SELECTOR_TC))
1816 DU_FREE_SHRABL_BUF(MAC_MEM_REGION, pst->pool, cellStopId, sizeof(MacCellStopInfo));
1821 /*******************************************************************
1823 * @brief Handles slot indication from MAC
1827 * Function : duHandleUlCcchInd
1830 * Handles UL CCCH indication from MAC
1832 * @params[in] Post structure pointer
1833 * UL CCCH Ind pointer
1834 * @return ROK - success
1837 * ****************************************************************/
1838 uint16_t duHandleUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo)
1841 DU_LOG("\nDU APP : UL CCCH Indication received");
1843 return (duProcUlCcchInd(ulCcchIndInfo));
1847 /**********************************************************************
1849 **********************************************************************/