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 *******************************************************************************/
18 /* This file contains UE management handling functionality for DU APP */
19 #include "du_ue_mgr.h"
22 /******************************************************************
24 * @brief Send UE configuration to RLC
28 * Function : duSendUeCreateReqToRlc
30 * Functionality: Send UeCreateReqToRlc
32 * @return ROK - success
35 * ****************************************************************/
36 S16 duSendUeCreateReqToRlc()
42 DU_SET_ZERO(&ueCfg, sizeof(ueCfg));
43 DU_SET_ZERO(&pst, sizeof(Pst));
46 ueCfg.cellId = NR_CELL_ID;
49 for(idx = 0; idx < ueCfg.numEnt; idx++)
51 ueCfg.entCfg[idx].rbId = 1;
52 ueCfg.entCfg[idx].rbType = CM_LTE_DRB;
53 ueCfg.entCfg[idx].entMode = CM_LTE_MODE_UM;
54 ueCfg.entCfg[idx].dir = CKW_CFG_DIR_BOTH;
56 switch(ueCfg.entCfg[idx].entMode)
65 ueCfg.entCfg[idx].m.umInfo.dl.snLen = 1; /* For 12 bit SN */
66 ueCfg.entCfg[idx].m.umInfo.ul.snLen = 1; /* For 12 bit SN */
67 ueCfg.entCfg[idx].m.umInfo.ul.reOrdTmr = 10; /* in msec */
78 } /* End of switch(entMode) */
79 } /* End of entity configuration for loop */
82 pst.selector = DU_SELECTOR_LWLC;
83 pst.srcEnt = ENTDUAPP;
85 pst.dstInst = RLC_UL_INST;
86 pst.dstProcId = DU_PROC;
87 pst.srcProcId = DU_PROC;
88 pst.region = duCb.init.region;
91 packUeCreateReq(&pst, &ueCfg);
94 } /* End of duSendUeCreateReqToRlc */
96 /**********************************************************************
98 ***********************************************************************/