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 /********************************************************************20**
21 Name: LTE RLC - Configuration Manager file
25 Desc: It contains the following configuraiton primtives
38 *********************************************************************21*/
39 static const char* RLOG_MODULE_NAME="CFG";
40 static int RLOG_MODULE_ID=2048;
41 static int RLOG_FILE_ID=191;
44 @brief RLC Downlink Configuration Module
48 /* header (.h) include files */
49 #include "common_def.h"
50 #include "lkw.h" /* LKW defines */
51 #include "ckw.h" /* CKW defines */
52 #include "kwu.h" /* KWU defines */
53 #include "rgu.h" /* RGU defines */
54 #include "kw_err.h" /* RLC error options */
55 #include "kw_env.h" /* RLC environment options */
56 #include "kw.h" /* RLC defines */
60 /* extern (.x) include files */
61 #include "lkw.x" /* LKW */
62 #include "ckw.x" /* CKW */
63 #include "kwu.x" /* KWU */
64 #include "rgu.x" /* RGU */
70 #define RLC_MODULE RLC_DBGMASK_CFG
71 /*Added for adding new Ue in onging L2 Meas*/
75 * @brief Handle modification of UE ID for L2 Meas data structs
78 * @param[in] ueId ue ID
85 static S16 rlcHdlMeasDlUeIdChg(RlcCb *gCb, uint8_t cellId,uint8_t oldUeId, uint8_t newUeId)
87 RlcL2MeasEvtCb *measEvtCb = NULLP;
88 RlcL2MeasCb *measCb = NULLP;
92 for(cntr = 0; cntr < LKW_MAX_L2MEAS; cntr++)
94 measEvtCb = &(gCb->u.dlCb->rlcL2Cb.rlcL2EvtCb[cntr]);
95 measCb = &(measEvtCb->measCb);
98 if(measCb->measType & LKW_L2MEAS_DL_IP )
101 for(ueIdx = 0; ueIdx < measCb->val.ipThMeas.numUes; ueIdx++)
103 if((measCb->val.ipThMeas.ueInfoLst[ueIdx].ueId) == oldUeId)
105 measCb->val.ipThMeas.ueInfoLst[ueIdx].ueId = newUeId;
116 * @brief Handler to delete an UE's L2 Meas ctxt
119 * @param[in] ueId ue ID
126 static S16 rlcDelFrmDlL2Meas(RlcCb *gCb, uint8_t cellId,uint8_t ueId)
128 RlcL2MeasEvtCb *measEvtCb = NULLP;
129 RlcL2MeasCb *measCb = NULLP;
134 for(cntr = 0; cntr < LKW_MAX_L2MEAS; cntr++)
136 measEvtCb = &gCb->u.dlCb->rlcL2Cb.rlcL2EvtCb[cntr];
137 measCb = &(measEvtCb->measCb);
140 if(measCb->measType & LKW_L2MEAS_DL_IP )
143 for(ueIdx = 0; ((ueIdx < measCb->val.ipThMeas.numUes) &&
144 (ueIdx < gCb->genCfg.maxUe)); ueIdx++)
146 if((measCb->val.ipThMeas.ueInfoLst[ueIdx].ueId) == ueId)
148 measCb->val.ipThMeas.ueInfoLst[ueIdx].isValid = FALSE;
149 if (measCb->val.ipThMeas.numUes-1 == ueIdx)
151 measCb->val.ipThMeas.numUes--;
163 static S16 rlcAddToDlL2Meas(RlcCb *gCb, RlcDlRbCb *rlcRbCb,uint8_t cellId,uint8_t ueId)
165 RlcL2MeasEvtCb *measEvtCb = NULLP;
166 RlcL2MeasCb *measCb = NULLP;
172 #ifndef XEON_SPECIFIC_CHANGES
173 uint8_t freeIdx = gCb->genCfg.maxUe;
175 uint16_t freeIdx = LKW_MAX_UE;
179 for(cntr = 0; cntr < LKW_MAX_L2MEAS; cntr++)
181 measEvtCb = &gCb->u.dlCb->rlcL2Cb.rlcL2EvtCb[cntr];
182 measCb = &(measEvtCb->measCb);
184 freeIdx = gCb->genCfg.maxUe;
186 if(measCb->measType &
187 (LKW_L2MEAS_ACT_UE | LKW_L2MEAS_UU_LOSS | LKW_L2MEAS_DL_DELAY))
189 for(cntr1 =0;((cntr1 < measCb->val.nonIpThMeas.numQci) &&
190 (cntr1 < LKW_MAX_QCI));cntr1++)
192 if(measCb->val.nonIpThMeas.qci[cntr1] != rlcRbCb->qci)
194 measCb->val.nonIpThMeas.qci[cntr1] = rlcRbCb->qci;
195 gCb->u.dlCb->rlcL2Cb.measOn[rlcRbCb->qci] |=measCb->measType;
201 if(((rlcRbCb->rbL2Cb.measOn & measCb->measType) == LKW_L2MEAS_NONE))
203 if (measCb->measType & LKW_L2MEAS_ACT_UE)
205 if((rlcRbCb->mode == CM_LTE_MODE_UM) &&
206 (rlcRbCb->dir & RLC_DIR_DL ))
208 if (rlcRbCb->m.umDl.sduQ.count)
210 if (rlcRbCb->ueCb->numActRb[rlcRbCb->qci] == 0)
212 rlcRbCb->ueCb->numActRb[rlcRbCb->qci]++;
213 gCb->u.dlCb->rlcL2Cb.numActUe[rlcRbCb->qci]++;
217 else if (rlcRbCb->mode == CM_LTE_MODE_AM)
219 if ((rlcRbCb->m.amDl.cntrlBo) ||
220 (rlcRbCb->m.amDl.retxBo) ||
221 (rlcRbCb->m.amDl.bo))
223 if (rlcRbCb->ueCb->numActRb[rlcRbCb->qci] == 0)
225 rlcRbCb->ueCb->numActRb[rlcRbCb->qci]++;
226 gCb->u.dlCb->rlcL2Cb.numActUe[rlcRbCb->qci]++;
232 if((measCb->measType & LKW_L2MEAS_DL_IP))
235 for(ueIdx = 0; ((ueIdx < measCb->val.ipThMeas.numUes) &&
236 (ueIdx < gCb->genCfg.maxUe)); ueIdx++)
238 if ((freeIdx == gCb->genCfg.maxUe) &&
239 (measCb->val.ipThMeas.ueInfoLst[ueIdx].isValid == FALSE))
244 if((measCb->val.ipThMeas.ueInfoLst[ueIdx].ueId) == ueId)
250 if (ueIdx == measCb->val.ipThMeas.numUes)
252 if (gCb->genCfg.maxUe == measCb->val.ipThMeas.numUes)
256 if (gCb->genCfg.maxUe == freeIdx)
258 measCb->val.ipThMeas.numUes++;
264 measCb->val.ipThMeas.ueInfoLst[ueIdx].isValid = TRUE;
265 memset(&measCb->val.ipThMeas.ueInfoLst[ueIdx].measData[0],0x00,(sizeof(RlcL2Cntr) *LKW_MAX_QCI));
266 measCb->val.ipThMeas.ueInfoLst[ueIdx].numQci = 0;
268 measCb->val.ipThMeas.ueInfoLst[ueIdx].ueId = ueId;
269 measCb->val.ipThMeas.ueInfoLst[ueIdx].cellId = cellId;
270 numQci = &(measCb->val.ipThMeas.ueInfoLst[ueIdx].numQci);
272 for (qciIdx =0; ((qciIdx < *numQci) &&
273 (qciIdx < LKW_MAX_QCI)) ; qciIdx++)
275 if (measCb->val.ipThMeas.ueInfoLst[ueIdx].qci[qciIdx] == rlcRbCb->qci)
281 /* Fix Klock Warning */
282 if ((qciIdx == *numQci) && (qciIdx < LKW_MAX_QCI))
284 measCb->val.ipThMeas.ueInfoLst[ueIdx].qci[qciIdx] = rlcRbCb->qci;
288 rlcUtlPlcMeasDatInL2Sts(&measCb->val.ipThMeas.ueInfoLst[ueIdx].measData[rlcRbCb->qci],
289 &rlcRbCb->rbL2Cb, measCb->measType);
291 else if (measCb->measType &
292 (LKW_L2MEAS_DL_DISC | LKW_L2MEAS_DL_DELAY | LKW_L2MEAS_UU_LOSS))
294 rlcUtlPlcMeasDatInL2Sts(&measCb->val.nonIpThMeas.measData[rlcRbCb->qci],
295 &rlcRbCb->rbL2Cb, measCb->measType);
296 measCb->val.nonIpThMeas.qci[rlcRbCb->qci] = rlcRbCb->qci;
297 measCb->val.nonIpThMeas.measData[rlcRbCb->qci].totDrbsPerQci++;
299 rlcRbCb->rbL2Cb.measOn |= measCb->measType;
302 }/*rlcAddToDlL2Meas*/
303 #endif /*LTE_L2_MEAS*/
307 * This primitive fills the RbCb
309 * @param [in] gCb - RLC Instance Control Block
310 * @param [out] rbCb - RB Control Block
311 * @param [out] ueCb - UE Control Block
312 * @param [in] entCfg - RLC Entity configuration
318 static S16 rlcCfgFillDlRbCb(RlcCb *gCb,RlcDlRbCb *rbCb,RlcDlUeCb *ueCb,RlcEntCfgInfo *entCfg)
321 RLOG_ARG3(L_DEBUG,DBG_RBID,entCfg->rbId,
322 "rlcCfgFillRbCb(ueId(%d),cellId(%d) rbType(%d))",
327 /* Initialize according to entMode */
328 switch (entCfg->entMode)
332 rbCb->lch.lChId = entCfg->lCh[0].lChId;
333 rbCb->lch.lChType = entCfg->lCh[0].type;
334 rbCb->dir = entCfg->dir;
340 rbCb->lch.lChId = entCfg->lCh[0].lChId;
341 rbCb->lch.lChType = entCfg->lCh[0].type;
342 rbCb->dir = entCfg->dir;
343 rbCb->m.umDl.snLen = entCfg->m.umInfo.dl.snLen;
344 if (entCfg->m.umInfo.dl.snLen == RLC_UM_CFG_5BIT_SN_LEN)
345 rbCb->m.umDl.modBitMask = 0x1f;
347 rbCb->m.umDl.modBitMask = 0x3ff;
349 ueCb->lCh[rbCb->lch.lChId - 1].dlRbCb = rbCb;
355 /* Down Link Information
356 * indx = 0 as Down Link */
357 rbCb->lch.lChId = entCfg->lCh[0].lChId;
358 rbCb->lch.lChType = entCfg->lCh[0].type;
359 rbCb->dir = RLC_DIR_BOTH;
360 rbCb->m.amDl.pollPdu = entCfg->m.amInfo.dl.pollPdu;
361 rbCb->m.amDl.pollByte = entCfg->m.amInfo.dl.pollByte;
362 rbCb->m.amDl.maxRetx = entCfg->m.amInfo.dl.maxRetx;
363 rbCb->m.amDl.pollRetxTmrInt = entCfg->m.amInfo.dl.pollRetxTmr;
364 rbCb->m.amDl.snLen = entCfg->m.amInfo.dl.snLen;
366 if(RLC_AM_CFG_12BIT_SN_LEN == rbCb->m.amDl.snLen)
368 rbCb->m.amDl.snModMask = (1 << RLC_SN_LEN_12BITS) - 1; /* 5GNR */
372 rbCb->m.amDl.snModMask = (1 << RLC_SN_LEN_18BITS) - 1; /* 5GNR */
375 cmInitTimers(&(rbCb->m.amDl.pollRetxTmr), 1);
378 ueCb->lCh[rbCb->lch.lChId - 1].dlRbCb = rbCb;
383 rbCb->m.amDl.txBufLst,
384 (RLC_TX_BUF_BIN_SIZE * sizeof(CmLListCp)));
385 for(hashIndex = 0; hashIndex < RLC_TX_BUF_BIN_SIZE; hashIndex++)
387 cmLListInit(&(rbCb->m.amDl.txBufLst[hashIndex]));
394 RLOG_ARG2(L_ERROR,DBG_RBID,entCfg->rbId,
395 "Invalid RB Mode ueId(%d),cellId(%d)",
401 rbCb->mode = entCfg->entMode;
402 rbCb->discTmrInt = entCfg->discardTmr;
409 * @brief This primitive Initializes the RB Cb
411 * @param [in] gCb - RLC Instance Control Block
412 * @param [out] rbCb - RB Control Block
413 * @param [in] ptr - Void pointer
414 * @param [in] entCfg - Entity Configuration
420 static S16 rlcCfgUpdateDlRb
425 RlcEntCfgInfo *entCfg
429 if (rbCb->mode != entCfg->entMode)
431 RLOG_ARG4(L_ERROR,DBG_RBID,rbCb->rlcId.rbId,
432 "RB Mode Mismatch : exp [%d] rcv [%d] UEID:%d CELLID:%d",
437 return (CKW_CFG_REAS_RB_MODE_MIS);
444 RlcDlCellCb *cellCb = (RlcDlCellCb *)ptr;
446 rbCb->dir = entCfg->dir;
447 rbCb->lch.lChId = entCfg->lCh[0].lChId;
448 rbCb->lch.lChType = entCfg->lCh[0].type;
450 cellCb->lCh[rbCb->lch.lChId - 1].dlRbCb = rbCb;
456 RlcDlUeCb *ueCb = (RlcDlUeCb *)ptr;
458 if (entCfg->lCh[0].type == CM_LTE_LCH_DCCH)
460 return (CKW_CFG_REAS_LCHTYPE_MIS);
462 ueCb->lCh[rbCb->lch.lChId - 1].dlRbCb = NULLP;
463 ueCb->lCh[entCfg->lCh[0].lChId - 1].dlRbCb = rbCb;
465 rbCb->lch.lChId = entCfg->lCh[0].lChId;
466 rbCb->lch.lChType = entCfg->lCh[0].type;
467 rbCb->dir = entCfg->dir;
473 RlcDlUeCb *ueCb = (RlcDlUeCb *)ptr;
475 ueCb->lCh[rbCb->lch.lChId - 1].dlRbCb = NULLP;
476 ueCb->lCh[entCfg->lCh[1].lChId - 1].dlRbCb = rbCb;
479 rbCb->lch.lChId = entCfg->lCh[1].lChId;
480 rbCb->lch.lChType = entCfg->lCh[1].type;
481 rbCb->m.amDl.pollRetxTmrInt = entCfg->m.amInfo.dl.pollRetxTmr;
482 rbCb->m.amDl.pollPdu = entCfg->m.amInfo.dl.pollPdu;
483 rbCb->m.amDl.pollByte = entCfg->m.amInfo.dl.pollByte;
484 rbCb->m.amDl.maxRetx = entCfg->m.amInfo.dl.maxRetx;
491 rbCb->discTmrInt = entCfg->discardTmr;
493 return (CKW_CFG_REAS_NONE);
499 * This primitive adds new RB in Ue/Cell Cb.
502 * This function does following steps -
503 * - If UE ID is 0 then
504 * - Check for CELL CB is present
505 * - If yes, Check for RB ID
506 * - If RB ID is present Status Indication with reason
507 * - Else, Create New RB CB in CELL CB
508 * - If no Create New CELL CB and RB CB
510 * - Check for UE CB is present
511 * - If yes Check for RB ID
512 * - If RB ID is present Status Indication with reason
513 * - Else, Create New RB CB in UE CB
514 * - If no Create New UE CB and RB CB
515 * - Fill entity confirmation
517 * @param [in] gCb - RLC Instance Control Block
518 * @param [in] ueId - UE Identifier
519 * @param [in] cellId - CELL Identifier
520 * @param [in] entCfg - Entity Configuration to be done.
521 * @param [out] entCfm - Entity Confirmation.
532 RlcEntCfgInfo *entCfg,
533 RlcEntCfgCfmInfo *entCfm
536 RlcDlUeCb *ueCb = NULLP; /* UE Control Block */
537 RlcDlCellCb *cellCb; /* Cell Control Block */
538 RlcDlRbCb *rlcRbCb; /* KW RB Control Block */
539 uint8_t reason; /* Rb Identifier */
541 RLOG_ARG3(L_DEBUG,DBG_RBID,entCfg->rbId,
542 "rlcCfgAddRb(cellId(%d),UEID:%d cfgType(%d))",
549 /* Fill entCfm structure */
550 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
551 CKW_CFG_REAS_CELL_UNKWN);
552 RLOG_ARG1(L_ERROR,DBG_RBID,entCfg->rbId,
553 "Add DLRb,CellId is 0 for UEID:%d",
557 if ((entCfg->rguSapId >= gCb->genCfg.maxRguSaps) || (entCfg->rguSapId < 0))
559 RLCDBGP_ERROR(gCb, "rlcCfgAddDlRb(ueId(%u), cellId(%u), Invalid rguSapId (%d)\n",
560 ueId, cellId, entCfg->rguSapId);
565 /* Process Adding new RB */
568 if(entCfg->rbId >= RLC_MAX_RB_PER_CELL)
570 /* Fill entCfm structure */
571 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
573 CKW_CFG_REAS_RB_UNKWN);
574 RLOG_ARG3(L_ERROR,DBG_RBID,entCfg->rbId,
575 "Invalid RbId ,Max is [%d] CELLID:%d UEID:%d",
582 if (((entCfg->lCh[0].type == CM_LTE_LCH_BCCH) ||
583 (entCfg->lCh[0].type == CM_LTE_LCH_PCCH) ||
584 (entCfg->lCh[0].type == CM_LTE_LCH_CCCH)) &&
585 (entCfg->entMode == CM_LTE_MODE_TM))
587 /* Cell CB present */
588 rlcDbmFetchDlCellCb(gCb, cellId, &cellCb);
591 /* Get rbCb from cellCb->rbCb List */
592 if (( cellCb->rbCb[entCfg->rbId] != NULLP))
594 /* Fill entCfm structure */
595 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
597 CKW_CFG_REAS_RB_PRSNT);
598 RLOG_ARG2(L_WARNING, DBG_CELLID,cellId,
599 "RbId [%d] already exists UEID:%d",
605 else /* Cell CB UNKNOWN */
608 if ( ROK != rlcDbmCreateDlCellCb(gCb,cellId, &cellCb))
610 /* Fill entCfm structure */
611 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
613 CKW_CFG_REAS_CELL_CREAT_FAIL);
614 RLOG_ARG2(L_ERROR,DBG_CELLID,cellId,
615 "cellCb Creation failed RBID:%d UEID:%d",
623 if(entCfg->lCh[0].lChId <= 0)
625 RLOG_ARG3(L_ERROR,DBG_LCID,entCfg->lCh[0].lChId ,
626 "Invalid LcId CELLID:%d UEID:%d RBID:%d",
630 /* Fill entCfm structure */
631 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
632 CKW_CFG_CFM_NOK, CKW_CFG_REAS_INVALID_LCHID);
637 RLC_ALLOC(gCb,rlcRbCb, sizeof (RlcDlRbCb));
640 RLOG_ARG2(L_FATAL,DBG_UEID,ueId,
641 "Memory allocation failed for rbId:%d CELLID:%d",
644 /* Fill entCfm structure */
645 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
646 CKW_CFG_CFM_NOK, CKW_CFG_REAS_RB_CREAT_FAIL);
649 rlcRbCb->rlcId.rbId = entCfg->rbId;
650 cellCb->rbCb[entCfg->rbId] = rlcRbCb;
651 RLC_LMM_RB_STS_INC(gCb);
652 cellCb->lCh[entCfg->lCh[0].lChId - 1].dlRbCb = rlcRbCb;
656 reason= (entCfg->entMode != CM_LTE_MODE_TM)? CKW_CFG_REAS_RB_MODE_MIS:
657 CKW_CFG_REAS_LCHTYPE_MIS;
658 /* Fill entCfm structure */
659 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
660 CKW_CFG_CFM_NOK, reason);
666 if (!(RLC_VALIDATE_UE_RBID(entCfg->rbType, entCfg->rbId)))
668 /* Fill entCfm structure */
669 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
670 CKW_CFG_REAS_RB_UNKWN);
671 RLOG_ARG2(L_ERROR,DBG_RBID, entCfg->rbId,
672 "Invalid RbId for RbType[%d] UEID:%d",
677 if ((((entCfg->lCh[0].type == CM_LTE_LCH_DCCH) &&
678 (entCfg->entMode != CM_LTE_MODE_UM) &&
679 (CM_LTE_SRB == entCfg->rbType)) ||
680 ((entCfg->lCh[0].type == CM_LTE_LCH_DTCH) &&
681 (CM_LTE_DRB == entCfg->rbType))) &&
682 (entCfg->entMode != CM_LTE_MODE_TM))
685 if ( rlcDbmFetchDlUeCb(gCb,ueId, cellId, &ueCb) == ROK)
687 /* Get rbCb from ueCb->rbCb list */
688 RLC_DBM_GET_RBCB_FROM_UECB(entCfg->rbId, entCfg->rbType, ueCb, rlcRbCb);
690 if(( rlcRbCb != NULLP))
692 /* Fill entCfm structure */
693 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
694 CKW_CFG_REAS_RB_PRSNT);
695 RLOG_ARG2(L_WARNING, DBG_UEID, ueId,
696 "CellId[%u]:rbId [%d] already exists",
702 else /* UE CB UNKNOWN */
705 if ( rlcDbmCreateDlUeCb(gCb,ueId, cellId, &ueCb) != ROK)
707 /* Fill entCfm structure */
708 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
709 CKW_CFG_REAS_UE_CREAT_FAIL);
710 RLOG_ARG2(L_WARNING, DBG_CELLID,cellId,
711 "UeId [%u]:ueCb Creation Failed RBID:%d",
718 /* Validate LChId for UM and AM modes */
719 if ((entCfg->lCh[0].lChId <= 0) ||
720 ((entCfg->entMode == CM_LTE_MODE_AM)&&
721 (entCfg->lCh[1].lChId <= 0)))
723 /* Fill entCfm structure */
724 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
725 CKW_CFG_CFM_NOK, CKW_CFG_REAS_INVALID_LCHID);
730 RLC_ALLOC(gCb,rlcRbCb, sizeof (RlcDlRbCb));
733 /* Fill entCfm structure */
734 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,CKW_CFG_CFM_NOK,
735 CKW_CFG_REAS_RB_CREAT_FAIL);
736 RLOG_ARG2(L_FATAL,DBG_UEID,ueId,
737 "Memory allocation failed RBID:%d CELLID:%d",
743 /* copy the RB Cb into UECb */
744 rlcRbCb->rlcId.rbId = entCfg->rbId;
745 if(entCfg->rbType == CM_LTE_SRB)
746 ueCb->srbCb[entCfg->rbId] = rlcRbCb;
748 ueCb->drbCb[entCfg->rbId] = rlcRbCb;
750 RLC_LMM_RB_STS_INC(gCb);
755 if (entCfg->entMode == CM_LTE_MODE_TM)
757 reason = CKW_CFG_REAS_RB_MODE_MIS;
761 reason = CKW_CFG_REAS_LCHTYPE_MIS;
764 /* Fill entCfm structure */
765 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK, reason);
771 rlcRbCb->rlcId.cellId = cellId;
772 rlcRbCb->rlcId.ueId = ueId;
773 rlcRbCb->rlcId.rbType = entCfg->rbType;
774 rlcRbCb->inst = gCb->init.inst;
775 #ifdef TENB_MULT_CELL_SUPPRT
776 rlcRbCb->rguSapId = entCfg->rguSapId;
781 if (rlcCfgFillDlRbCb(gCb,rlcRbCb, ueCb, entCfg) != ROK)
783 /* Fill entCfm structure */
784 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
785 CKW_CFG_REAS_RB_CREAT_FAIL);
787 /* Delete RB CB created */
788 RLC_FREE(gCb,rlcRbCb, sizeof(RlcDlRbCb));
789 RLOG_ARG2(L_ERROR,DBG_RBID, entCfg->rbId,
790 "Filling of RbCb failed UEID:%d CELLID:%d",
795 rlcRbCb->qci = entCfg->qci;
797 rlcRbCb->ueCb = ueCb;
798 if (entCfg->lCh[0].type == CM_LTE_LCH_DTCH)
801 rlcAddToDlL2Meas(gCb, rlcRbCb,cellId,ueId);
803 #endif /* LTE_L2_MEAS */
805 /* Fill entCfm structure */
806 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_OK, CKW_CFG_REAS_NONE);
814 * This primitive reconfigures the existing RB in Ue/Cell Cb.
817 * This primitive executes following steps in reconfiguration of existing
819 * - If UE ID is 0 then
820 * - Check for CELL CB is present
821 * - If yes, Check for RB ID
822 * - If RB ID is present Reconfigure the RB CB
823 * - Else, Status Indication with Reason
824 * - Else, Status Indication with Reason
826 * - Check for UE CB is present
827 * - If yes, Check for RB ID
828 * - If RB ID is prenset Reconfigure the CELL CB
829 * - Else, Status Indication with Reason
830 * - Else, Status Indication with Reason
831 * - Fill entity confirmation
833 * @param [in] gCb - RLC Instance Control Block
834 * @param [in] ueId - UE Identifier
835 * @param [in] cellId - CELL Identifier
836 * @param [in] entCfg - Entity Configuration to be done.
837 * @param [out] entCfm - Entity Confirmation
848 RlcEntCfgInfo *entCfg,
849 RlcEntCfgCfmInfo *entCfm
852 RlcDlRbCb *rbCb; /* RB Control Block */
853 RlcDlRbCb tRbCb; /* KW RB Control Block */
854 RlcDlCellCb *cellCb; /* Cell Control Block */
855 RlcDlUeCb *ueCb; /* Ue Control Block */
858 RLOG_ARG3(L_DEBUG,DBG_UEID,ueId,
859 "rlcCfgReCfgRb(cellId(%d), cfgType(%d)) RBID:%d",
860 cellId, entCfg->cfgType,entCfg->rbId);
863 /* Check for UeCb or CellCb */
866 if(entCfg->rbId >= RLC_MAX_RB_PER_CELL)
868 /* Fill entCfm structure */
869 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
870 CKW_CFG_REAS_RB_UNKWN);
871 RLOG_ARG3(L_ERROR,DBG_RBID,entCfg->rbId,
872 "Invalid RbId , Max is [%d] UEID:%d CELLID:%d",
879 rlcDbmFetchDlCellCb(gCb,cellId, &cellCb);
882 /* Fill entCfm structure */
883 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
884 CKW_CFG_REAS_CELL_UNKWN);
885 RLOG_ARG3(L_ERROR,DBG_CELLID,cellId,
886 "CellCb not found ueId:%d RBID:%d CELLID:%d",
894 RLC_DBM_GET_CELL_RBCB(entCfg->rbId, cellCb->rbCb, rbCb);
898 /* Fill entCfm structure */
899 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
900 CKW_CFG_REAS_RB_UNKWN);
901 RLOG_ARG2(L_ERROR,DBG_UEID,ueId,
902 "CELLID:%d RBID:%d not found",
908 /* Take backup of rbCb before updating.
909 * Because in failure case restore original rbCb
911 memcpy(&tRbCb, rbCb, sizeof(RlcDlRbCb));
914 ret = rlcCfgUpdateDlRb(gCb,rbCb, cellCb,entCfg);
917 /* Fill entCfm structure */
918 RLC_CFG_FILL_CFG_CFM(entCfm,
924 RLOG_ARG2(L_ERROR,DBG_UEID,ueId,
925 "CELLID:%u RBID:%d updation failed",
928 memcpy(rbCb, &tRbCb, sizeof(RlcDlRbCb));
935 if (!(RLC_VALIDATE_UE_RBID(entCfg->rbType, entCfg->rbId)))
937 /* Fill entCfm structure */
938 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
939 CKW_CFG_REAS_RB_UNKWN);
940 RLOG_ARG3(L_ERROR,DBG_UEID,ueId,
941 "CELLID:%d Invalid RBID:%d for RbType[%d]",
948 ret = rlcDbmFetchDlUeCb(gCb,ueId, cellId, &ueCb);
951 /* Fill entCfm structure */
952 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
953 CKW_CFG_CFM_NOK, CKW_CFG_REAS_UE_UNKWN);
954 RLOG_ARG2(L_ERROR,DBG_CELLID, cellId,
955 "UEID:%d UeCb not found RBID:%d",
962 RLC_DBM_GET_RBCB_FROM_UECB(entCfg->rbId, entCfg->rbType, ueCb, rbCb);
966 /* Fill entCfm structure */
967 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
968 CKW_CFG_REAS_RB_UNKWN);
969 RLOG_ARG2(L_ERROR, DBG_UEID,ueId,
970 "CELLID:%d RBID:%d not found",
976 /* Take backup of rbCb before updating.
977 * Because in failure case restore original rbCb
979 memcpy(&tRbCb, rbCb, sizeof(RlcDlRbCb));
982 ret = rlcCfgUpdateDlRb(gCb,rbCb,ueCb, entCfg);
983 if (ret != CKW_CFG_REAS_NONE)
985 /* Fill entCfm structure */
986 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
988 RLOG_ARG2(L_ERROR,DBG_UEID,ueId,
989 "CELLID:%d RBID:%d updation failed",
992 memcpy(rbCb, &tRbCb, sizeof(RlcDlRbCb));
998 /* Fill entCfm structure */
999 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_OK, CKW_CFG_REAS_NONE);
1006 * @brief This primitive deletes the existing RB in Ue/Cell Cb.
1009 * - If UE ID is 0 then
1010 * - Check for CELL CB is present
1011 * - If yes, Check for RB ID
1012 * - If RB ID is prenset Delete the RB CB
1013 * - If there is no RB CB exist in CELL CB then Delete CELL CB.
1014 * - Else, Status Indication with Reason
1015 * - Else, Status Indication with Reason
1017 * - Check for UE CB is present
1018 * - If yes, Check for RB ID
1019 * - If RB ID is prenset Delete the RB CB
1020 * - If there is no RB CB exist in UE CB then Delete UE CB.
1021 * - Else, Status Indication with Reason
1022 * - Else, Status Indication with Reason
1023 * - Fill entity confirmation
1025 * @param [in] gCb - RLC Instance Control Block
1026 * @param [in] ueId - UE Identifier
1027 * @param [in] cellId - CELL Identifier
1028 * @param [in] entCfg - Entity Configuration to be done.
1029 * @param [out] entCfm - Entity Confirmation
1040 RlcEntCfgInfo *entCfg,
1041 RlcEntCfgCfmInfo *entCfm
1044 S16 ret; /* Return Value */
1045 RlcDlUeCb *ueCb; /* UE Control Block */
1046 RlcDlCellCb *cellCb; /* UE Control Block */
1047 RlcDlRbCb *rlcRbCb; /* KW RB Control Block */
1049 RLOG_ARG3(L_DEBUG,DBG_UEID,ueId,
1050 "rlcCfgDelRb(RBID(%d), cellId(%d), cfgType(%d))",
1057 /* Get cellCb and delete rbCb from it */
1060 if(entCfg->rbId >= RLC_MAX_RB_PER_CELL)
1062 /* Fill entCfm structure */
1063 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1064 CKW_CFG_CFM_NOK, CKW_CFG_REAS_RB_UNKWN);
1065 RLOG_ARG3(L_ERROR,DBG_RBID,entCfg->rbId ,
1066 "Invalid RbId, Max is [%d] UEID:%d CELLID:%d",
1067 RLC_MAX_RB_PER_CELL,
1073 rlcDbmFetchDlCellCb(gCb,cellId, &cellCb);
1076 /* Fill entCfm structure */
1077 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1078 CKW_CFG_CFM_NOK, CKW_CFG_REAS_RB_UNKWN);
1079 RLOG_ARG2(L_ERROR,DBG_CELLID,cellId,
1080 "CellCb not found UEID:%d RBID:%d",
1087 RLC_DBM_GET_CELL_RBCB(entCfg->rbId, cellCb->rbCb, rlcRbCb);
1089 if ( rlcRbCb == NULLP)
1091 /* Fill entCfm structure */
1092 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1093 CKW_CFG_CFM_NOK, CKW_CFG_REAS_RB_UNKWN);
1094 RLOG_ARG2(L_ERROR, DBG_UEID,ueId,
1095 "CellId[%u]:RbId[%d] not found",
1101 /* Assign NULLP to rbCb in rbCbLst */
1102 cellCb->rbCb[entCfg->rbId] = NULLP;
1104 /* Assign NULLP to dlRbCb/ulRbCb.
1105 * Delete Hashlist allocated for it if any */
1106 cellCb->lCh[rlcRbCb->lch.lChId - 1].dlRbCb = NULLP;
1107 RLC_FREE(gCb,rlcRbCb, sizeof(RlcDlRbCb)); /*Vartika: Mem leak fix */
1109 /* Get ueCb and delete rbCb from it */
1112 if (!(RLC_VALIDATE_UE_RBID(entCfg->rbType, entCfg->rbId)))
1114 /* Fill entCfm structure */
1115 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1116 CKW_CFG_CFM_NOK, CKW_CFG_REAS_RB_UNKWN);
1117 RLOG_ARG3(L_ERROR,DBG_RBID, entCfg->rbId,
1118 "Invalid RbId for RbType[%d] UEID:%d CELLID:%d",
1126 ret = rlcDbmFetchDlUeCb(gCb,ueId, cellId, &ueCb);
1129 /* Fill entCfm structure */
1130 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1131 CKW_CFG_CFM_NOK, CKW_CFG_REAS_UE_UNKWN);
1132 RLOG_ARG2(L_ERROR,DBG_CELLID, cellId,
1133 "UeId [%d]: UeCb not found RBID:%d",
1140 RLC_DBM_GET_RBCB_FROM_UECB(entCfg->rbId, entCfg->rbType, ueCb, rlcRbCb);
1142 if ( rlcRbCb == NULLP)
1144 /* Fill entCfm structure */
1145 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
1146 CKW_CFG_REAS_RB_UNKWN);
1147 RLOG_ARG2(L_ERROR, DBG_UEID,ueId,
1148 "CellId[%u]:RbId[%d] not found",
1154 ueCb->lCh[rlcRbCb->lch.lChId - 1].dlRbCb = NULLP;
1157 RLC_UPD_L2_DECR_NONIP_PER_QCI_RB_COUNT(gCb, rlcRbCb);
1159 /* Free the Buffers of RbCb */
1160 if( CM_LTE_MODE_UM == rlcRbCb->mode)
1162 rlcUmmFreeDlRbCb(gCb,rlcRbCb);
1164 RLC_FREE(gCb,rlcRbCb, sizeof(RlcDlRbCb));
1166 else if( CM_LTE_MODE_AM == rlcRbCb->mode)
1168 rlcAmmFreeDlRbCb(gCb,rlcRbCb);
1171 /* Assign NULLP to rbCb in rbCbLst */
1172 if ( entCfg->rbType == CM_LTE_SRB )
1174 ueCb->srbCb[entCfg->rbId] = NULLP;
1178 ueCb->drbCb[entCfg->rbId] = NULLP;
1182 RLC_LMM_RB_STS_DEC(gCb);
1184 /* Fill entCfm structure */
1185 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType, CKW_CFG_CFM_OK,
1193 * @brief This primitive re-establish the existing RB in Ue/Cell Cb.
1196 * - If UE ID is 0 then
1197 * - Check for CELL CB is present
1198 * - If yes, Check for RB ID
1199 * - If RB ID is prenset initialize the parameters of the RB CB
1200 * - Else, Status Indication with Reason
1201 * - Else, Status Indication with Reason
1203 * - Check for UE CB is present
1204 * - If yes, Check for RB ID
1205 * - If RB ID is prenset initialize the parameters of the RB CB
1206 * - Else, Status Indication with Reason
1207 * - Else, Status Indication with Reason
1208 * - Fill entity confirmation
1210 * @param [in] gCb - RLC Instance Control Block
1211 * @param [in] ueId - UE Identifier
1212 * @param [in] cellId - CELL Identifier
1213 * @param [in] entCfg - Entity Configuration to be done.
1214 * @param [out] entCfm - Entity Confirmation
1226 RlcEntCfgInfo *entCfg,
1227 RlcEntCfgCfmInfo *entCfm
1230 RlcDlRbCb *rbCb; /* RB Control Block */
1231 CmLteRlcId rlcId; /* RLC Identifier */
1233 RLOG_ARG3(L_DEBUG,DBG_RBID,entCfg->rbId,
1234 "rlcCfgReEstDlRb(ueId(%d), cellId(%d), cfgType(%d))",
1241 rlcId.cellId = cellId;
1242 rlcId.rbId = entCfg->rbId;
1243 rlcId.rbType = entCfg->rbType;
1245 rlcDbmFetchDlRbCbByRbId(gCb,&rlcId, &rbCb);
1248 /* Fill entCfm structure */
1249 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, rlcId.rbType, CKW_CFG_CFM_NOK,
1250 CKW_CFG_REAS_RB_UNKWN);
1251 RLOG_ARG2(L_ERROR, DBG_UEID,ueId,
1252 "CellId[%u]:RbId[%d] not found",
1258 rbCb->rlcId.ueId = ueId;
1262 case CM_LTE_MODE_TM:
1264 rlcDlTmmReEstablish(gCb,rbCb);
1268 case CM_LTE_MODE_UM:
1270 rlcDlUmmReEstablish(gCb,rlcId,sndReEstInd,rbCb);
1274 case CM_LTE_MODE_AM:
1276 rlcAmmDlReEstablish(gCb, rlcId, rbCb);
1281 /* Fill entCfm structure */
1282 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1283 CKW_CFG_CFM_OK, CKW_CFG_REAS_NONE);
1290 * @brief This primitive deletes the RBs in Ue Cb.
1293 * - If UE ID is 0 then
1294 * - Status Indication with Reason
1296 * - Check for UE CB is present
1297 * - If yes, Delete all RB CB in UE CB and Delete UE CB also.
1298 * - Else, Status Indication with Reason
1299 * - Fill entity confirmation
1301 * @param [in] gCb - RLC Instance Control Block
1302 * @param [in] ueId - UE Identifier
1303 * @param [in] cellId - CELL Identifier
1304 * @param [in] entCfg - Entity Configuration to be done.
1305 * @param [out] entCfm - Entity Confirmation
1316 RlcEntCfgInfo *entCfg,
1317 RlcEntCfgCfmInfo *entCfm
1320 S16 ret; /* Return Value */
1321 RlcDlUeCb *ueCb; /* UE Control Block */
1323 RLOG_ARG3(L_DEBUG,DBG_RBID,entCfg->rbId,
1324 "rlcCfgDelUe(ueId(%d), cellId(%d), cfgType(%d))",
1331 /* Check for ueId is present or not */
1334 /* Fill entCfm structure */
1335 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1336 CKW_CFG_CFM_NOK, CKW_CFG_REAS_UE_UNKWN);
1337 RLOG_ARG2(L_ERROR,DBG_RBID,entCfg->rbId,
1338 "ueId(%d), cellId(%d)",
1345 ret = rlcDbmFetchDlUeCb(gCb,ueId, cellId, &ueCb);
1348 /* Fill entCfm structure */
1349 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1350 CKW_CFG_CFM_NOK, CKW_CFG_REAS_UE_UNKWN);
1351 RLOG_ARG2(L_ERROR,DBG_CELLID, cellId,
1352 "UEID:%d UeCb not found RBID:%d",
1359 rlcDelFrmDlL2Meas(gCb,cellId,ueId);
1360 rlcDbmDelAllDlL2MeasTbFrmUe(gCb,ueCb);
1363 rlcDbmDelDlUeCb(gCb,ueCb, FALSE);
1365 /* Fill entCfm structure */
1366 RLC_CFG_FILL_CFG_CFM(entCfm, entCfg->rbId, entCfg->rbType,
1367 CKW_CFG_CFM_OK, CKW_CFG_REAS_NONE);
1374 * @brief This primitive deletes the RBs in Ue Cb.
1377 * - If CELL ID is 0 then
1378 * - Status Indication with Reason
1380 * - Check for CELL CB is present
1381 * - If yes, Delete all RB CB in CELL CB and Delete CELL CB also.
1382 * - Else, Status Indication with Reason
1383 * - Fill entity confirmation
1385 * @param [in] cellId - CELL Identifier
1386 * @param [in] entCfg - Entity Configuration to be done.
1387 * @param [out] entCfm - Entity Confirmation
1397 RlcEntCfgInfo *entCfg,
1398 RlcEntCfgCfmInfo *entCfm
1401 RlcDlCellCb *cellCb; /* UE Control Block */
1402 uint8_t rbId; /* RB Identifier */
1404 RLOG_ARG2(L_DEBUG,DBG_RBID,entCfg->rbId,
1405 "rlcCfgDelCell( cellId(%d), cfgType(%d)",
1410 rbId = entCfg->rbId;
1412 /* Check for ueId is present or not */
1415 /* Fill entCfm structure */
1416 RLC_CFG_FILL_CFG_CFM(entCfm, rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
1417 CKW_CFG_REAS_CELL_UNKWN);
1418 RLOG_ARG1(L_DEBUG,DBG_RBID,entCfg->rbId,
1419 "cellId is 0 (%d) ",
1425 rlcDbmFetchDlCellCb(gCb,cellId, &cellCb);
1428 /* Fill entCfm structure */
1429 RLC_CFG_FILL_CFG_CFM(entCfm, rbId, entCfg->rbType, CKW_CFG_CFM_NOK,
1430 CKW_CFG_REAS_CELL_UNKWN);
1431 RLOG_ARG1(L_ERROR, DBG_CELLID,cellId,
1432 "CellCb not found for RBID:%d",
1438 rlcDbmDelDlCellCb(gCb,cellCb);
1440 /* Fill entCfm structure */
1441 /* kw005.201 added support for L2 Measurement */
1442 RLC_CFG_FILL_CFG_CFM(entCfm, rbId, entCfg->rbType, CKW_CFG_CFM_OK,
1449 * @brief This primitive changes the ueId of Ue Cb.
1452 * - If oldUeId and newUeId are
1453 * - Confirm the Status with Reason
1454 * - If UeId not present
1455 * - Confirm the Status with Reason
1457 * - Copy rbCbs from old UeCb to new UeCb
1459 * - Fill entity confirmation
1461 * @param [in] ueInfo - Old UE Information
1462 * @param [in] newUeInfo - New UE Information
1463 * @param [out] status - Status
1469 S16 rlcCfgDlUeIdChng
1473 CkwUeInfo *newUeInfo,
1478 /*kw004.201 Adding of Missing Trace in LTE RLC PDCP*/
1480 if ( (ueInfo->ueId == newUeInfo->ueId) &&
1481 (ueInfo->cellId == newUeInfo->cellId))
1483 status->reason = CKW_CFG_REAS_SAME_UEID;
1484 status->status = CKW_CFG_CFM_NOK;
1485 RLOG_ARG2(L_ERROR,DBG_CELLID,ueInfo->cellId,
1486 "Old UeId[%d] same as new UeId[%d]",
1492 if(ROK == rlcDbmFetchDlUeCb(gCb,newUeInfo->ueId, newUeInfo->cellId, &ueCb))
1494 RLOG_ARG1(L_ERROR, DBG_CELLID, newUeInfo->cellId,
1495 "NewUeId[%d]:ueCb already exists",
1497 status->reason = CKW_CFG_REAS_UE_EXISTS;
1498 status->status = CKW_CFG_CFM_NOK;
1502 if(ROK != rlcDbmFetchDlUeCb(gCb,ueInfo->ueId, ueInfo->cellId, &ueCb))
1505 RLOG_ARG1(L_ERROR,DBG_CELLID,ueInfo->cellId,
1506 "UeId [%d]: UeCb not found",
1508 status->reason = CKW_CFG_REAS_UE_UNKWN;
1509 status->status = CKW_CFG_CFM_NOK;
1514 rlcHdlMeasDlUeIdChg(gCb, ueInfo->cellId, ueInfo->ueId, newUeInfo->ueId);
1516 if(ROK != cmHashListDelete(&(gCb->u.dlCb->ueLstCp), (PTR) ueCb))
1518 RLOG_ARG1(L_ERROR,DBG_CELLID,ueInfo->cellId,
1519 "UeId[%u] HashList Deletion Failed",
1521 status->reason = CKW_CFG_REAS_UE_CREAT_FAIL;
1522 status->status = CKW_CFG_CFM_NOK;
1526 /* update the hash key with new values */
1527 ueCb->ueId = newUeInfo->ueId;
1528 ueCb->cellId = newUeInfo->cellId;
1530 if(ROK != cmHashListInsert(&(gCb->u.dlCb->ueLstCp),
1531 (PTR)ueCb, (uint8_t *)&(ueCb->ueId),
1532 (uint16_t) sizeof(CmLteRnti)))
1535 RLOG_ARG1(L_ERROR,DBG_CELLID,newUeInfo->cellId,
1536 "UeId[%u] HashList Insertion Failed",
1538 status->reason = CKW_CFG_REAS_UE_CREAT_FAIL;
1539 status->status = CKW_CFG_CFM_NOK;
1546 /********************************************************************30**
1549 **********************************************************************/