X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Fkw_uim.c;h=5732c93814fe7043201122de7ea66ad008d2b8af;hb=451e626d5ac7c7e7586bab23358161230449af46;hp=3ec50f5b7cc754fccfbd3dba564e185e5738f080;hpb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/kw_uim.c b/src/5gnrrlc/kw_uim.c index 3ec50f5b7..5732c9381 100755 --- a/src/5gnrrlc/kw_uim.c +++ b/src/5gnrrlc/kw_uim.c @@ -269,6 +269,40 @@ Reason reason; RETVALUE(ROK); } +/******************************************************************* + * + * @brief Handler for UE create request + * + * @details + * + * Function : RlcDuappProcUeCreateReq + * + * Functionality: + * Handler for UE create request + * + * @params[in] pst - Post Structure + * cfg - Configuration information for one or more RLC entities + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +PUBLIC S16 RlcDuappProcUeCreateReq(Pst *pst, CkwCfgInfo *ueCfg) +{ + U8 idx; + S16 ret=ROK; + + ueCfg->transId = 1; + + for(idx = 0; idx < ueCfg->numEnt; idx++) + { + ueCfg->entCfg[idx].cfgType = CKW_CFG_ADD; + } + + ret = KwUiCkwCfgReq(pst, ueCfg); + return ret; + +} /* RlcDuappUeCreateReq */ + /** * @brief @@ -290,17 +324,17 @@ Reason reason; PUBLIC S16 KwUiCkwCfgReq ( Pst *pst, -SpId spId, +//SpId spId, CkwCfgInfo *cfg ) #else -PUBLIC S16 KwUiCkwCfgReq(pst, spId, cfg) +//PUBLIC S16 KwUiCkwCfgReq(pst, spId, cfg) +PUBLIC S16 KwUiCkwCfgReq(pst, cfg) Pst *pst; -SpId spId; +//SpId spId; CkwCfgInfo *cfg; #endif { - S16 ret = ROK; KwCb *tKwCb; KwUlCfgTmpData *cfgTmpData; @@ -318,16 +352,6 @@ CkwCfgInfo *cfg; #endif tKwCb = KW_GET_KWCB(pst->dstInst); - RLOG1(L_DEBUG, "spId(%d)", spId); - - /* Validate SAP ID under ERRORCLS */ - KW_VALDATE_SAP(tKwCb, spId, (&(tKwCb->u.ulCb->ckwSap)), ret); - if (ret != ROK) - { - KW_PST_FREE(pst->region, pst->pool, cfg, sizeof(CkwCfgInfo)); - RETVALUE(RFAILED); - } - KW_ALLOC(tKwCb, cfgTmpData, sizeof (KwUlCfgTmpData)); if (cfgTmpData == NULLP)