Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "JIRA-ID ODUHIGH-275 classification of logs of RLC part -2"
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw_udx.c
diff --git
a/src/5gnrrlc/kw_udx.c
b/src/5gnrrlc/kw_udx.c
index
73bdee1
..
ccb2f33
100755
(executable)
--- a/
src/5gnrrlc/kw_udx.c
+++ b/
src/5gnrrlc/kw_udx.c
@@
-53,21
+53,7
@@
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkUdxStruct
-(
-Buffer *srcMBuf,
-U32 offset,
-U8 *dstBuf,
-U32 size
-)
-#else
-PRIVATE S16 cmUnpkUdxStruct(dstMBuf,srcBuf,size)
-Buffer *srcMBuf;
-U32 offset;
-U8 *dstBuf;
-MsgLen size;
-#endif
+static S16 cmUnpkUdxStruct(Buffer *srcMBuf,uint32_t offset,uint8_t *dstBuf,uint32_t size)
{
MsgLen tmpLen;
{
MsgLen tmpLen;
@@
-88,19
+74,7
@@
MsgLen size;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-PRIVATE S16 cmPkUdxStruct
-(
-U8 *srcBuf,
-MsgLen size,
-Buffer *dstMBuf
-)
-#else
-PRIVATE S16 cmPkUdxStruct(dstMBuf,srcBuf,size)
-U8 *srcBuf;
-MsgLen size;
-Buffer *dstMBuf;
-#endif
+static S16 cmPkUdxStruct(uint8_t *srcBuf,MsgLen size,Buffer *dstMBuf)
{
return (SAddPstMsgMult(srcBuf,size,dstMBuf));
{
return (SAddPstMsgMult(srcBuf,size,dstMBuf));
@@
-119,19
+93,7
@@
Buffer *dstMBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxBndReq
-(
-Pst *pst,
-SuId suId,
-SpId spId
-)
-#else
-S16 cmPkUdxBndReq(pst, suId, spId)
-Pst *pst;
-SuId suId;
-SpId spId;
-#endif
+S16 cmPkUdxBndReq(Pst *pst,SuId suId,SpId spId)
{
S16 ret1;
Buffer *mBuf;
{
S16 ret1;
Buffer *mBuf;
@@
-169,19
+131,7
@@
SpId spId;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxUbndReq
-(
-Pst *pst,
-SpId spId,
-Reason reason
-)
-#else
-S16 cmPkUdxUbndReq(pst, spId, reason)
-Pst *pst;
-SpId spId;
-Reason reason;
-#endif
+S16 cmPkUdxUbndReq(Pst *pst,SpId spId,Reason reason)
{
S16 ret1;
Buffer *mBuf;
{
S16 ret1;
Buffer *mBuf;
@@
-219,19
+169,7
@@
Reason reason;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxBndCfm
-(
-Pst *pst,
-SuId suId,
-U8 status
-)
-#else
-S16 cmPkUdxBndCfm(pst, suId, status)
-Pst *pst;
-SuId suId;
-U8 status;
-#endif
+S16 cmPkUdxBndCfm(Pst *pst,SuId suId,uint8_t status)
{
S16 ret1;
Buffer *mBuf;
{
S16 ret1;
Buffer *mBuf;
@@
-271,19
+209,7
@@
U8 status;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxCfgReq
-(
-Pst *pst,
-SpId spId,
-RlcCfgInfo *cfgInfo
-)
-#else
-S16 cmPkUdxCfgReq(pst, spId, cfgInfo)
-Pst *pst;
-SpId spId;
-RlcCfgInfo *cfgInfo;
-#endif
+S16 cmPkUdxCfgReq(Pst *pst,SpId spId,RlcCfgInfo *cfgInfo)
{
S16 ret1;
Buffer *mBuf;
{
S16 ret1;
Buffer *mBuf;
@@
-307,7
+233,7
@@
RlcCfgInfo *cfgInfo;
#ifdef LCUDX
case UDX_SEL_LC:
{
#ifdef LCUDX
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)cfgInfo, sizeof(RlcCfgInfo),mBuf);
+ cmPkUdxStruct((
uint8_t
*)cfgInfo, sizeof(RlcCfgInfo),mBuf);
/* Need Not free CfgInfo here as it is stored
in UL */
break;
/* Need Not free CfgInfo here as it is stored
in UL */
break;
@@
-340,19
+266,7
@@
RlcCfgInfo *cfgInfo;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxCfgCfm
-(
-Pst *pst,
-SuId suId,
-RlcCfgCfmInfo *cfgCfmInfo
-)
-#else
-S16 cmPkUdxCfgCfm(pst, suId, cfgCfmInfo)
-Pst *pst;
-SuId suId;
-RlcCfgCfmInfo *cfgCfmInfo;
-#endif
+S16 cmPkUdxCfgCfm(Pst *pst,SuId suId,RlcCfgCfmInfo *cfgCfmInfo)
{
S16 ret1;
Buffer *mBuf;
{
S16 ret1;
Buffer *mBuf;
@@
-376,7
+290,7
@@
RlcCfgCfmInfo *cfgCfmInfo;
#ifdef LCUDX
case UDX_SEL_LC:
{
#ifdef LCUDX
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)cfgCfmInfo, sizeof(RlcCfgCfmInfo),mBuf);
+ cmPkUdxStruct((
uint8_t
*)cfgCfmInfo, sizeof(RlcCfgCfmInfo),mBuf);
/* Need to free the cfgCfmInfo here as it is allocated
buffer call SPutStaticBuffer */
SPutStaticBuffer(pst->region,pst->pool,(Data *) cfgCfmInfo,
/* Need to free the cfgCfmInfo here as it is allocated
buffer call SPutStaticBuffer */
SPutStaticBuffer(pst->region,pst->pool,(Data *) cfgCfmInfo,
@@
-411,23
+325,14
@@
RlcCfgCfmInfo *cfgCfmInfo;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
S16 cmPkUdxUeIdChgReq
(
S16 cmPkUdxUeIdChgReq
(
-Pst
*pst,
-SpId
spId,
-
U32
transId,
-CkwUeInfo
*ueInfo,
-CkwUeInfo
*newUeInfo
+Pst *pst,
+SpId spId,
+
uint32_t
transId,
+CkwUeInfo *ueInfo,
+CkwUeInfo *newUeInfo
)
)
-#else
-S16 cmPkUdxUeIdChgReq(pst, spId, transId, ueInfo, newUeInfo)
-Pst *pst;
-SpId spId;
-U32 transId;
-CkwUeInfo *ueInfo;
-CkwUeInfo *newUeInfo;
-#endif
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-452,8
+357,8
@@
CkwUeInfo *newUeInfo;
#ifdef LCUDX
case UDX_SEL_LC:
{
#ifdef LCUDX
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)newUeInfo, sizeof(CkwUeInfo),mBuf);
- cmPkUdxStruct((
U8
*)ueInfo, sizeof(CkwUeInfo),mBuf);
+ cmPkUdxStruct((
uint8_t
*)newUeInfo, sizeof(CkwUeInfo),mBuf);
+ cmPkUdxStruct((
uint8_t
*)ueInfo, sizeof(CkwUeInfo),mBuf);
/* No need to free ueInfo here as it is stored */
break;
}
/* No need to free ueInfo here as it is stored */
break;
}
@@
-465,7
+370,7
@@
CkwUeInfo *newUeInfo;
}
default:
{
}
default:
{
-
printf("
cmPkUdxUeIdChgReq()- selector =%d not supported \n", pst->selector);
+
DU_LOG("\nERROR --> RLC :
cmPkUdxUeIdChgReq()- selector =%d not supported \n", pst->selector);
exit(1);
}
#endif
exit(1);
}
#endif
@@
-491,21
+396,7
@@
CkwUeInfo *newUeInfo;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxUeIdChgCfm
-(
-Pst *pst,
-SuId suId,
-U32 transId,
-CmStatus status
-)
-#else
-S16 cmPkUdxUeIdChgCfm(pst, suId, transId, status)
-Pst *pst;
-SuId suId;
-U32 transId;
-CmStatus status;
-#endif
+S16 cmPkUdxUeIdChgCfm(Pst *pst,SuId suId,uint32_t transId,CmStatus status)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-546,21
+437,7
@@
CmStatus status;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxStaUpdCfm
-(
-Pst *pst,
-SuId suId,
-CmLteRlcId *rlcId,
-RlcUdxBufLst *pStaPdu
-)
-#else
-S16 cmPkUdxStaUpdCfm(pst, suId, rlcId,pStaPdu)
-Pst *pst;
-SuId suId;
-CmLteRlcId *rlcId;
-RlcUdxBufLst *pStaPdu;
-#endif
+S16 cmPkUdxStaUpdCfm(Pst *pst,SuId suId,CmLteRlcId *rlcId,RlcUdxBufLst *pStaPdu)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-583,8
+460,8
@@
RlcUdxBufLst *pStaPdu;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)pStaPdu, sizeof(RlcUdxBufLst),mBuf);
- cmPkUdxStruct((
U8
*)rlcId, sizeof(CmLteRlcId),mBuf);
+ cmPkUdxStruct((
uint8_t
*)pStaPdu, sizeof(RlcUdxBufLst),mBuf);
+ cmPkUdxStruct((
uint8_t
*)rlcId, sizeof(CmLteRlcId),mBuf);
break;
}
case UDX_SEL_LWLC:
break;
}
case UDX_SEL_LWLC:
@@
-614,19
+491,7
@@
RlcUdxBufLst *pStaPdu;
* File: Kw_udx.c
*
*/
* File: Kw_udx.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxStaProhTmrStart
-(
-Pst *pst,
-SpId spId,
-CmLteRlcId *rlcId
-)
-#else
-S16 cmPkUdxStaProhTmrStart(pst, suId, rlcId)
-Pst *pst;
-SpId spId;
-CmLteRlcId *rlcId;
-#endif
+S16 cmPkUdxStaProhTmrStart(Pst *pst,SpId spId,CmLteRlcId *rlcId)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-649,7
+514,7
@@
CmLteRlcId *rlcId;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)rlcId, sizeof(CmLteRlcId),mBuf);
+ cmPkUdxStruct((
uint8_t
*)rlcId, sizeof(CmLteRlcId),mBuf);
break;
}
case UDX_SEL_LWLC:
break;
}
case UDX_SEL_LWLC:
@@
-678,21
+543,7
@@
CmLteRlcId *rlcId;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxStaUpdReq
-(
-Pst *pst,
-SpId spId,
-CmLteRlcId *rlcId,
-RlcUdxStaPdu *pStaPdu
-)
-#else
-S16 cmPkUdxStaUpdReq(pst, suId, rlcId,pStaPdu)
-Pst *pst;
-SpId spId;
-CmLteRlcId *rlcId;
-RlcUdxStaPdu *pStaPdu;
-#endif
+S16 cmPkUdxStaUpdReq(Pst *pst,SpId spId,CmLteRlcId *rlcId,RlcUdxStaPdu *pStaPdu)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-715,8
+566,8
@@
RlcUdxStaPdu *pStaPdu;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)pStaPdu, sizeof(RlcUdxStaPdu),mBuf);
- cmPkUdxStruct((
U8
*)rlcId, sizeof(CmLteRlcId),mBuf);
+ cmPkUdxStruct((
uint8_t
*)pStaPdu, sizeof(RlcUdxStaPdu),mBuf);
+ cmPkUdxStruct((
uint8_t
*)rlcId, sizeof(CmLteRlcId),mBuf);
SPutStaticBuffer(pst->region,pst->pool,(Data *) pStaPdu,
sizeof(RlcUdxStaPdu),0);
SPutStaticBuffer(pst->region,pst->pool,(Data *) pStaPdu,
sizeof(RlcUdxStaPdu),0);
@@
-749,21
+600,7
@@
RlcUdxStaPdu *pStaPdu;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmPkUdxStaPduReq
-(
-Pst *pst,
-SpId spId,
-CmLteRlcId *rlcId,
-RlcUdxDlStaPdu *pStaPdu
-)
-#else
-S16 cmPkUdxStaPduReq(pst, suId, rlcId,pStaPdu)
-Pst *pst;
-SpId spId;
-CmLteRlcId *rlcId;
-RlcUdxDlStaPdu *pStaPdu;
-#endif
+S16 cmPkUdxStaPduReq(Pst *pst,SpId spId,CmLteRlcId *rlcId,RlcUdxDlStaPdu *pStaPdu)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-786,8
+623,8
@@
RlcUdxDlStaPdu *pStaPdu;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)pStaPdu, sizeof(RlcUdxDlStaPdu),mBuf);
- cmPkUdxStruct((
U8
*)rlcId, sizeof(CmLteRlcId),mBuf);
+ cmPkUdxStruct((
uint8_t
*)pStaPdu, sizeof(RlcUdxDlStaPdu),mBuf);
+ cmPkUdxStruct((
uint8_t
*)rlcId, sizeof(CmLteRlcId),mBuf);
/* Free status Pdu here for LC */
SPutStaticBuffer(pst->region,pst->pool,(Data *) pStaPdu,
sizeof(RlcUdxDlStaPdu),0);
/* Free status Pdu here for LC */
SPutStaticBuffer(pst->region,pst->pool,(Data *) pStaPdu,
sizeof(RlcUdxDlStaPdu),0);
@@
-818,17
+655,7
@@
RlcUdxDlStaPdu *pStaPdu;
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmPkUdxL2MeasReq
-(
-Pst *pst,
-RlcL2MeasReqEvt *measReqEvt
-)
-#else
-S16 cmPkUdxL2MeasReq(pst, measReqEvt)
-Pst *pst;
-RlcL2MeasReqEvt *measReqEvt;
-#endif
+S16 cmPkUdxL2MeasReq(Pst *pst,RlcL2MeasReqEvt *measReqEvt)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-851,7
+678,7
@@
RlcL2MeasReqEvt *measReqEvt;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmPkUdxStruct((
U8
*)measReqEvt, sizeof(RlcL2MeasReqEvt),mBuf);
+ cmPkUdxStruct((
uint8_t
*)measReqEvt, sizeof(RlcL2MeasReqEvt),mBuf);
break;
}
case UDX_SEL_LWLC:
break;
}
case UDX_SEL_LWLC:
@@
-876,17
+703,7
@@
RlcL2MeasReqEvt *measReqEvt;
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmPkUdxL2MeasSendReq
-(
-Pst *pst,
-U8 measType
-)
-#else
-S16 cmPkUdxL2MeasSendReq(pst, measReqEvt)
-Pst *pst;
-U8 measType
-#endif
+S16 cmPkUdxL2MeasSendReq(Pst *pst,uint8_t measType)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-930,17
+747,7
@@
U8 measType
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmPkUdxL2MeasStopReq
-(
-Pst *pst,
-U8 measType
-)
-#else
-S16 cmPkUdxL2MeasStopReq(pst, measType)
-Pst *pst;
-U8 measType
-#endif
+S16 cmPkUdxL2MeasStopReq(Pst *pst,uint8_t measType)
{
S16 ret1;
Buffer *mBuf = NULLP;
{
S16 ret1;
Buffer *mBuf = NULLP;
@@
-991,19
+798,7
@@
U8 measType
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxBndReq
-(
-UdxBndReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxBndReq(func, pst, mBuf)
-UdxBndReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxBndReq(UdxBndReq func,Pst *pst,Buffer *mBuf)
{
SuId suId = 0;
SpId spId = 0;
{
SuId suId = 0;
SpId spId = 0;
@@
-1028,19
+823,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxUbndReq
-(
-UdxUbndReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxUbndReq(func, pst, mBuf)
-UdxUbndReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxUbndReq(UdxUbndReq func,Pst *pst,Buffer *mBuf)
{
SpId spId = 0;
Reason reason = 0;
{
SpId spId = 0;
Reason reason = 0;
@@
-1064,22
+847,10
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxBndCfm
-(
-UdxBndCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxBndCfm(func, pst, mBuf)
-UdxBndCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxBndCfm(UdxBndCfm func,Pst *pst,Buffer *mBuf)
{
SuId suId = 0;
{
SuId suId = 0;
-
U8
status = 0;
+
uint8_t
status = 0;
CMCHKUNPKLOG(SUnpkS16, &suId, mBuf, EUDXXXX, pst);
CMCHKUNPKLOG(oduPackUInt8, &status, mBuf, EUDXXXX, pst);
CMCHKUNPKLOG(SUnpkS16, &suId, mBuf, EUDXXXX, pst);
CMCHKUNPKLOG(oduPackUInt8, &status, mBuf, EUDXXXX, pst);
@@
-1102,19
+873,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxCfgReq
-(
-UdxCfgReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxCfgReq(func, pst, mBuf)
-UdxCfgReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxCfgReq(UdxCfgReq func,Pst *pst,Buffer *mBuf)
{
#if(ERRCLASS & ERRCLS_DEBUG)
S16 ret1;
{
#if(ERRCLASS & ERRCLS_DEBUG)
S16 ret1;
@@
-1130,7
+889,7
@@
Buffer *mBuf;
case UDX_SEL_LC:
{
#if(ERRCLASS & ERRCLS_DEBUG)
case UDX_SEL_LC:
{
#if(ERRCLASS & ERRCLS_DEBUG)
- ret1 = cmUnpkUdxStruct(mBuf,0,(
U8
*)&tmpCfgInfo,sizeof(RlcCfgInfo));
+ ret1 = cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)&tmpCfgInfo,sizeof(RlcCfgInfo));
if(ret1 != ROK)
{
SPutMsg(mBuf);
if(ret1 != ROK)
{
SPutMsg(mBuf);
@@
-1140,7
+899,7
@@
Buffer *mBuf;
return ( ret1 );
}
#else
return ( ret1 );
}
#else
- cmUnpkUdxStruct(mBuf,0,(
U8
*)&tmpCfgInfo,sizeof(RlcCfgInfo));
+ cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)&tmpCfgInfo,sizeof(RlcCfgInfo));
#endif /* ERRCLASS & ERRCLS_DEBUG */
cfgInfo = &tmpCfgInfo;
break;
#endif /* ERRCLASS & ERRCLS_DEBUG */
cfgInfo = &tmpCfgInfo;
break;
@@
-1171,19
+930,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxCfgCfm
-(
-UdxCfgCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxCfgCfm(func, pst, mBuf)
-UdxCfgCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxCfgCfm(UdxCfgCfm func,Pst *pst,Buffer *mBuf)
{
S16 ret1;
SuId suId = 0;
{
S16 ret1;
SuId suId = 0;
@@
-1210,7
+957,7
@@
Buffer *mBuf;
return (ret1);
}
return (ret1);
}
- ret1 = cmUnpkUdxStruct(mBuf,0,(
U8
*)cfgCfmInfo, sizeof(RlcCfgCfmInfo));
+ ret1 = cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)cfgCfmInfo, sizeof(RlcCfgCfmInfo));
#if(ERRCLASS & ERRCLS_DEBUG)
if(ret1 != ROK)
{
#if(ERRCLASS & ERRCLS_DEBUG)
if(ret1 != ROK)
{
@@
-1248,22
+995,10
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxUeIdChgReq
-(
-UdxUeIdChgReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxUeIdChgReq(func, pst, mBuf)
-UdxUeIdChgReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxUeIdChgReq(UdxUeIdChgReq func,Pst *pst,Buffer *mBuf)
{
SpId spId = 0;
{
SpId spId = 0;
-
U32
transId = 0;
+
uint32_t
transId = 0;
CkwUeInfo tmpUeInfo;
CkwUeInfo tmpNewUeInfo;
CkwUeInfo *ueInfo;
CkwUeInfo tmpUeInfo;
CkwUeInfo tmpNewUeInfo;
CkwUeInfo *ueInfo;
@@
-1277,8
+1012,8
@@
Buffer *mBuf;
#ifdef LCUDX
case UDX_SEL_LC:
{
#ifdef LCUDX
case UDX_SEL_LC:
{
- cmUnpkUdxStruct(mBuf,0,(
U8
*)&tmpNewUeInfo, sizeof(CkwUeInfo));
- cmUnpkUdxStruct(mBuf,sizeof(CkwUeInfo),(
U8
*)&tmpUeInfo, sizeof(CkwUeInfo));
+ cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)&tmpNewUeInfo, sizeof(CkwUeInfo));
+ cmUnpkUdxStruct(mBuf,sizeof(CkwUeInfo),(
uint8_t
*)&tmpUeInfo, sizeof(CkwUeInfo));
ueInfo = &tmpUeInfo;
newUeInfo = &tmpNewUeInfo;
ueInfo = &tmpUeInfo;
newUeInfo = &tmpNewUeInfo;
@@
-1292,7
+1027,7
@@
Buffer *mBuf;
}
default:
{
}
default:
{
-
printf("
cmUnpkUdxUeIdChgReq()- selector =%d not supported \n", pst->selector);
+
DU_LOG("\nERROR --> RLC :
cmUnpkUdxUeIdChgReq()- selector =%d not supported \n", pst->selector);
exit(1);
}
exit(1);
}
@@
-1317,22
+1052,10
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxUeIdChgCfm
-(
-UdxUeIdChgCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxUeIdChgCfm(func, pst, mBuf)
-UdxUeIdChgCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxUeIdChgCfm(UdxUeIdChgCfm func,Pst *pst,Buffer *mBuf)
{
SuId suId = 0;
{
SuId suId = 0;
-
U32
transId = 0;
+
uint32_t
transId = 0;
CmStatus status;
memset(&status, 0, sizeof(CmStatus));
CmStatus status;
memset(&status, 0, sizeof(CmStatus));
@@
-1361,19
+1084,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxStaUpdCfm
-(
-UdxStaUpdCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxStaUpdCfm(func, pst, mBuf)
-UdxStaUpdCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxStaUpdCfm(UdxStaUpdCfm func,Pst *pst,Buffer *mBuf)
{
SuId suId = 0;
CmLteRlcId *rlcId = NULLP; /* KW_FIX */
{
SuId suId = 0;
CmLteRlcId *rlcId = NULLP; /* KW_FIX */
@@
-1413,19
+1124,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxStaUpdReq
-(
-UdxStaUpdReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxStaUpdReq(func, pst, mBuf)
-UdxStaUpdReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxStaUpdReq(UdxStaUpdReq func,Pst *pst,Buffer *mBuf)
{
SpId spId = 0;
CmLteRlcId *rlcId = NULLP; /* KW_FIX */
{
SpId spId = 0;
CmLteRlcId *rlcId = NULLP; /* KW_FIX */
@@
-1451,8
+1150,8
@@
Buffer *mBuf;
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
- ret1 = cmUnpkUdxStruct(mBuf,0,(
U8
*)pStaPdu, sizeof(RlcUdxStaPdu));
- ret1 = cmUnpkUdxStruct(mBuf,sizeof(RlcUdxStaPdu),(
U8
*)&tmpRlcId,sizeof(CmLteRlcId));
+ ret1 = cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)pStaPdu, sizeof(RlcUdxStaPdu));
+ ret1 = cmUnpkUdxStruct(mBuf,sizeof(RlcUdxStaPdu),(
uint8_t
*)&tmpRlcId,sizeof(CmLteRlcId));
rlcId = &tmpRlcId;
break;
}
rlcId = &tmpRlcId;
break;
}
@@
-1483,19
+1182,7
@@
Buffer *mBuf;
* File: ckw.c
*
*/
* File: ckw.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxStaPduReq
-(
-UdxStaPduReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxStaPduReq(func, pst, mBuf)
-UdxStaPduReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxStaPduReq(UdxStaPduReq func,Pst *pst,Buffer *mBuf)
{
S16 ret1;
SpId spId = 0;
{
S16 ret1;
SpId spId = 0;
@@
-1521,8
+1208,8
@@
Buffer *mBuf;
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
- ret1 = cmUnpkUdxStruct(mBuf,0, (
U8
*)pStaPdu, sizeof(RlcUdxDlStaPdu));
- ret1 = cmUnpkUdxStruct(mBuf,sizeof(RlcUdxDlStaPdu),(
U8
*)&tmpRlcId,sizeof(CmLteRlcId));
+ ret1 = cmUnpkUdxStruct(mBuf,0, (
uint8_t
*)pStaPdu, sizeof(RlcUdxDlStaPdu));
+ ret1 = cmUnpkUdxStruct(mBuf,sizeof(RlcUdxDlStaPdu),(
uint8_t
*)&tmpRlcId,sizeof(CmLteRlcId));
rlcId = &tmpRlcId;
break;
}
rlcId = &tmpRlcId;
break;
}
@@
-1552,19
+1239,7
@@
Buffer *mBuf;
* File: kw_udx.c
*
*/
* File: kw_udx.c
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxStaProhTmrStart
-(
-UdxStaProhTmrStart func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxStaProhTmrStart(func, pst, mBuf)
-UdxStaProhTmrStart func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxStaProhTmrStart(UdxStaProhTmrStart func,Pst *pst,Buffer *mBuf)
{
SpId spId = 0;
CmLteRlcId tmpRlcId;
{
SpId spId = 0;
CmLteRlcId tmpRlcId;
@@
-1575,7
+1250,7
@@
Buffer *mBuf;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmUnpkUdxStruct(mBuf,0,(
U8
*)&tmpRlcId,sizeof(CmLteRlcId));
+ cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)&tmpRlcId,sizeof(CmLteRlcId));
rlcId = &tmpRlcId;
break;
}
rlcId = &tmpRlcId;
break;
}
@@
-1604,19
+1279,7
@@
Buffer *mBuf;
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxL2MeasReq
-(
-UdxL2MeasReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxL2MeasReq(func, pst, mBuf)
-UdxL2MeasReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxL2MeasReq(UdxL2MeasReq func,Pst *pst,Buffer *mBuf)
{
RlcL2MeasReqEvt tmpMeasReqEvt;
RlcL2MeasReqEvt *measReqEvt = NULLP; /* KW_FIX */
{
RlcL2MeasReqEvt tmpMeasReqEvt;
RlcL2MeasReqEvt *measReqEvt = NULLP; /* KW_FIX */
@@
-1625,7
+1288,7
@@
Buffer *mBuf;
{
case UDX_SEL_LC:
{
{
case UDX_SEL_LC:
{
- cmUnpkUdxStruct(mBuf,0,(
U8
*)&tmpMeasReqEvt,sizeof(RlcL2MeasReqEvt));
+ cmUnpkUdxStruct(mBuf,0,(
uint8_t
*)&tmpMeasReqEvt,sizeof(RlcL2MeasReqEvt));
measReqEvt = &tmpMeasReqEvt;
break;
}
measReqEvt = &tmpMeasReqEvt;
break;
}
@@
-1651,21
+1314,9
@@
Buffer *mBuf;
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxL2MeasSendReq
-(
-UdxL2MeasSendReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxL2MeasSendReq(func, pst, mBuf)
-UdxL2MeasSendReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxL2MeasSendReq(UdxL2MeasSendReq func,Pst *pst,Buffer *mBuf)
{
{
-
U8
measType = 0; /* KW_FIX */
+
uint8_t
measType = 0; /* KW_FIX */
switch (pst->selector)
{
switch (pst->selector)
{
@@
-1692,21
+1343,9
@@
Buffer *mBuf;
*
*
*/
*
*
*/
-#ifdef ANSI
-S16 cmUnpkUdxL2MeasStopReq
-(
-UdxL2MeasStopReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkUdxL2MeasStopReq(func, pst, mBuf)
-UdxL2MeasSendReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
+S16 cmUnpkUdxL2MeasStopReq(UdxL2MeasStopReq func,Pst *pst,Buffer *mBuf)
{
{
-
U8
measType = 0; /* KW_FIX */
+
uint8_t
measType = 0; /* KW_FIX */
switch (pst->selector)
{
switch (pst->selector)
{