/**********************************************************************
- Name: LTE RLC layer
+ Name: NR RLC layer
Type: C include file
File: kw_udx_dl.c
**********************************************************************/
-static const char* RLOG_MODULE_NAME="UDX";
-static int RLOG_MODULE_ID=262144;
-static int RLOG_FILE_ID=203;
/* header include files (.h) */
#include "common_def.h"
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 rlcDlUdxBndReq
(
Pst *pst,
SuId suId,
SpId spId
)
-#else
-S16 rlcDlUdxBndReq (pst, suId, spId)
-Pst *pst;
-SuId suId;
-SpId spId;
-#endif
{
RlcUdxDlSapCb *udxSap; /* pointer to session SAP */
RlcCb *tRlcCb;
/* Update the State */
udxSap->state = RLC_SAP_BND;
- RLOG1(L_INFO, "UDX SAP state [%d]", udxSap->state);
+ DU_LOG("\nINFO --> RLC_DL : UDX SAP state [%d]", udxSap->state);
break;
}
/* SAP is already bound */
RLC_SEND_SAPID_ALARM(tRlcCb, spId,
LKW_EVENT_UDX_BND_REQ, LCM_CAUSE_INV_PAR_VAL);
- RLOG0(L_ERROR, "UDX SAP already Bound");
+ DU_LOG("\nERROR --> RLC_DL : UDX SAP already Bound");
rlcDlUdxBndCfm(&(udxSap->pst), udxSap->suId, CM_BND_NOK);
}
break;
RLC_SEND_SAPID_ALARM(tRlcCb,spId,
LKW_EVENT_CKW_BND_REQ, LCM_CAUSE_INV_STATE);
#endif /* ERRCLASS & ERRCLS_INT_PAR */
- RLOG0(L_ERROR, "Invalid UDX SAP State in Bind Req");
+ DU_LOG("\nERROR --> RLC_DL : Invalid UDX SAP State in Bind Req");
rlcDlUdxBndCfm(&(udxSap->pst), udxSap->suId, CM_BND_NOK);
break;
}
* @return S16
* -# ROK
*/
-#ifdef ANSI
S16 rlcDlUdxUbndReq
(
Pst *pst,
SpId spId,
Reason reason
)
-#else
-S16 rlcDlUdxUbndReq(pst, spId, reason)
-Pst *pst;
-SpId spId;
-Reason reason;
-#endif
{
RlcUdxDlSapCb *udxSap;
RlcCb *tRlcCb;
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
- RLOG2(L_DEBUG,"Unbind Req for spId[%d], reason[%d]",
+ DU_LOG("\nDEBUG --> RLC_DL : Unbind Req for spId[%d], reason[%d]",
spId, reason);
UNUSED(reason);
/* disable upper sap (CKW) */
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 rlcDlUdxCfgReq
(
Pst *pst,
SpId spId,
RlcCfgInfo *cfg
)
-#else
-S16 rlcDlUdxCfgReq(pst, spId, cfg)
-Pst *pst;
-SpId spId;
-RlcCfgInfo *cfg;
-#endif
{
RlcCfgCfmInfo *cfgCfm;
uint8_t idx;
#if (ERRCLASS & ERRCLS_ADD_RES)
if (cfgCfm == NULLP)
{
- RLOG0(L_FATAL,"Memory Allocation Failed.");
+ DU_LOG("\nERROR --> RLC_DL : Memory Allocation Failed.");
/* kw002.201 Freeing from proper region */
/* RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo)); */
return RFAILED;
if (rlcCfgAddDlRb(tRlcCb,cfg->ueId, cfg->cellId,\
entCfg, entCfgCfm) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_RBID,cfg->entCfg[idx].rbId,"Addition Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : Addition Failed due to[%d]",
entCfgCfm->status.reason);
}
}
if (rlcCfgReCfgDlRb(tRlcCb,cfg->ueId, cfg->cellId,\
entCfg, entCfgCfm) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_RBID,cfg->entCfg[idx].rbId,"ReCfg Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : ReCfg Failed due to[%d]",
entCfgCfm->status.reason);
}
}
if (rlcCfgDelDlRb(tRlcCb,cfg->ueId, cfg->cellId,\
entCfg, entCfgCfm) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_RBID,cfg->entCfg[idx].rbId,"Deletion Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : Deletion Failed due to[%d]",
entCfgCfm->status.reason);
}
}
if (rlcCfgReEstDlRb(tRlcCb,cfg->ueId, cfg->cellId,
sndReEst,entCfg, entCfgCfm) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_RBID,cfg->entCfg[idx].rbId,"Reest Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : Reest Failed due to[%d]",
entCfgCfm->status.reason);
}
}
if (rlcCfgDelDlUe(tRlcCb,cfg->ueId, cfg->cellId,
entCfg, entCfgCfm) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_UEID,cfg->ueId,"deletion Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : deletion Failed due to[%d]",
entCfgCfm->status.reason);
}
+ else
+ {
+ DU_LOG("\nDEBUG --> RLC_DL: UE information is deleted for UEIdx[%d] and CellId[%d]",\
+ cfg->ueId, cfg->cellId);
+ }
break;
}
case CKW_CFG_DELETE_CELL:
if (rlcCfgDelDlCell(tRlcCb,cfg->cellId,entCfg,entCfgCfm)
!= ROK )
{
- RLOG_ARG1(L_ERROR,DBG_CELLID,cfg->cellId,"deletion Failed due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : deletion Failed due to[%d]",
entCfgCfm->status.reason);
}
break;
{
RLC_CFG_FILL_CFG_CFM(entCfgCfm, entCfg->rbId, entCfg->rbType,\
CKW_CFG_CFM_NOK, CKW_CFG_REAS_INVALID_CFG);
- RLOG0(L_ERROR, "Invalid CfgType");
+ DU_LOG("\nERROR --> RLC_DL : Invalid CfgType");
}
}
}
* -# ROK
* -# RFAILED
*/
-#ifdef ANSI
S16 rlcDlUdxUeIdChgReq
(
Pst *pst,
CkwUeInfo *ueInfo,
CkwUeInfo *newUeInfo
)
-#else
-S16 rlcDlUdxUeIdChgReq(pst,spId,transId,ueInfo,newUeInfo)
-Pst *pst;
-SpId spId;
-uint32_t transId;
-CkwUeInfo *ueInfo;
-CkwUeInfo *newUeInfo;
-#endif
{
CmStatus status;
RlcCb *tRlcCb;
if (rlcCfgDlUeIdChng(tRlcCb, ueInfo, newUeInfo, &status) != ROK)
{
- RLOG_ARG1(L_ERROR,DBG_CELLID,newUeInfo->cellId,"Failure due to[%d]",
+ DU_LOG("\nERROR --> RLC_DL : Failure due to[%d]",
status.reason);
}
rlcDlUdxUeIdChgCfm(&(tRlcCb->u.dlCb->udxDlSap[spId].pst),
* -# ROK
* -# RFAILED
**/
-#ifdef ANSI
S16 rlcDlUdxStaPduReq
(
Pst *pst,
CmLteRlcId *rlcId,
RlcUdxDlStaPdu *pStaPdu
)
-#else
-S16 rlcDlUdxStaPduReq(pst, spId, rlcId, pStaPdu)
-Pst *pst;
-SpId spId;
-CmLteRlcId *rlcId;
-RlcUdxDlStaPdu *pStaPdu;
-#endif
{
RlcDlRbCb *rbCb;
RlcCb *tRlcCb;
rlcDbmFetchDlRbCbByRbId(tRlcCb, rlcId, &rbCb); /* Fetch DBM RbCb */
if (!rbCb)
{
- RLOG_ARG2(L_ERROR, DBG_UEID,rlcId->ueId, "CellId [%u]:RbId[%d] not found",
+ DU_LOG("\nERROR --> RLC_DL : CellId [%u]:RbId[%d] not found",
rlcId->cellId,rlcId->rbId);
RLC_FREE_SHRABL_BUF(pst->region,
pst->pool,
return RFAILED;
}
- AMDL.cntrlBo = pStaPdu->controlBo;
+ RLC_AMDL.cntrlBo = pStaPdu->controlBo;
/* If there already exists a STAUS PDU, free it and take the new one
into account */
- if(AMDL.pStaPdu)
+ if(RLC_AMDL.pStaPdu)
{
RLC_FREE_SHRABL_BUF(pst->region,
pst->pool,
- AMDL.pStaPdu,
+ RLC_AMDL.pStaPdu,
sizeof(RlcUdxDlStaPdu));
}
- AMDL.pStaPdu = pStaPdu;
- rlcAmmSendDedLcBoStatus(tRlcCb, rbCb, &AMDL);
+ RLC_AMDL.pStaPdu = pStaPdu;
+ rlcAmmSendDedLcBoStatus(tRlcCb, rbCb, &RLC_AMDL);
return (ROK);
}
* -# ROK
* -# RFAILED
**/
-#ifdef ANSI
S16 rlcDlUdxStaUpdReq
(
Pst* pst,
CmLteRlcId *rlcId,
RlcUdxStaPdu *pStaPdu
)
-#else
-S16 rlcDlUdxStaUpdReq(pst, spId, rlcId,pStaPdu)
-Pst* pst;
-SpId spId;
-CmLteRlcId *rlcId;
-RlcUdxStaPdu *pStaPdu;
-#endif
{
RlcCb *tRlcCb;
RlcDlRbCb *rbCb;
rlcDbmFetchDlRbCbByRbId(tRlcCb, rlcId, &rbCb);
if (!rbCb)
{
- RLOG_ARG2(L_ERROR, DBG_UEID,rlcId->ueId, "CellId [%u]:RbId[%d] not found",
+ DU_LOG("\nERROR --> RLC_DL : CellId [%u]:RbId[%d] not found",
rlcId->cellId,rlcId->rbId);
return RFAILED;
}
#ifdef LTE_L2_MEAS
/**
*/
-#ifdef ANSI
S16 rlcDlUdxL2MeasReq
(
Pst *pst,
RlcL2MeasReqEvt *measReqEvt
)
-#else
-S16 rlcDlUdxL2MeasReq (pst, measReqEvt)
-Pst *pst;
-RlcL2MeasReqEvt *measReqEvt;
-#endif
{
uint32_t cntr;
uint8_t measType;
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 rlcDlUdxL2MeasStopReq
(
Pst *pst,
uint8_t measType
)
-#else
-S16 rlcDlUdxL2MeasStopReq (pst, measType)
-Pst *pst;
-uint8_t measType;
-#endif
{
/* S16 ret = ROK;*/
RlcL2MeasEvtCb *measEvtCb = NULLP;
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 rlcDlUdxL2MeasSendReq
(
Pst *pst,
uint8_t measType
)
-#else
-S16 rlcDlUdxL2MeasSendReq (pst, measType)
-Pst *pst;
-uint8_t measType;
-#endif
{
RlcL2MeasEvtCb *measEvtCb;
uint16_t cntr;