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
[JIRA ID:ODUHIGH-236] Security Authentication in UL
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw_tmm_ul.c
diff --git
a/src/5gnrrlc/kw_tmm_ul.c
b/src/5gnrrlc/kw_tmm_ul.c
index
6777cdf
..
d9d735b
100755
(executable)
--- a/
src/5gnrrlc/kw_tmm_ul.c
+++ b/
src/5gnrrlc/kw_tmm_ul.c
@@
-26,8
+26,8
@@
reassembly.This file contains following functions
--rlcTmmQSdu
reassembly.This file contains following functions
--rlcTmmQSdu
- --rlcTmmS
ndToLi
- --rlcTmmRcvFrm
Li
+ --rlcTmmS
endToMac
+ --rlcTmmRcvFrm
Mac
--kwTmmReEstablish
File: kw_tmm_ul.c
--kwTmmReEstablish
File: kw_tmm_ul.c
@@
-109,7
+109,6
@@
U8 rrcUeCapabilityInfo[] =
#ifdef PJ
Pst ulPst2 ={100,100,217,0,216,0,PRIOR0,0,68,0,1,0,0};
#endif
#ifdef PJ
Pst ulPst2 ={100,100,217,0,216,0,PRIOR0,0,68,0,1,0,0};
#endif
- TRC2(rlcTmmRcvFrmLi)
if(1 == rrcMsgType)
{
if(1 == rrcMsgType)
{
@@
-129,7
+128,7
@@
U8 rrcUeCapabilityInfo[] =
RLOG1(L_INFO,"Profiling Framework Sending RRC Connection Req to RRC for UE :%d\n",crnti);
printf("Profiling Framework Sending RRC Connection Req to RRC for UE :%d\n",crnti);
RLOG1(L_INFO,"Profiling Framework Sending RRC Connection Req to RRC for UE :%d\n",crnti);
printf("Profiling Framework Sending RRC Connection Req to RRC for UE :%d\n",crnti);
-
RlcUiKwuDatInd
(&ulPst1, datIndInfo, pdu);
+
rlcSendUlDataToDu
(&ulPst1, datIndInfo, pdu);
}
else if(2 == rrcMsgType)
{
}
else if(2 == rrcMsgType)
{
@@
-245,53
+244,19
@@
U8 rrcUeCapabilityInfo[] =
* -# RFAILED
*/
#ifdef CCPU_OPT
* -# RFAILED
*/
#ifdef CCPU_OPT
-#ifdef ANSI
-Void rlcTmmRcvFrmLi
-(
-RlcCb *gCb,
-RlcUlRbCb *rbCb,
-CmLteRnti tCrnti,
-Buffer *pdu
-)
-#else
-Void rlcTmmRcvFrmLi(gCb,rbCb, tCrnti, pdu)
-RlcCb *gCb;
-RlcUlRbCb *rbCb;
-CmLteRnti tCrnti;
-Buffer *pdu;
-#endif
-#else
-#ifdef ANSI
-Void rlcTmmRcvFrmLi
-(
-RlcCb *gCb,
-RlcUlRbCb *rbCb,
-Buffer *pdu
-)
+void rlcTmmRcvFrmMac(RlcCb *gCb, RlcUlRbCb *rbCb, CmLteRnti tCrnti, Buffer *pdu)
#else
#else
-Void rlcTmmRcvFrmLi(gCb,rbCb, pdu)
-RlcCb *gCb;
-RlcUlRbCb *rbCb;
-Buffer *pdu;
+void rlcTmmRcvFrmMac(RlcCb *gCb, RlcUlRbCb *rbCb, Buffer *pdu)
#endif
#endif
-#endif
{
RlcUlRrcMsgInfo *ulRrcMsgInfo;
uint16_t msgLen;
uint16_t copyLen; /* Number of bytes copied */
Pst pst;
{
RlcUlRrcMsgInfo *ulRrcMsgInfo;
uint16_t msgLen;
uint16_t copyLen; /* Number of bytes copied */
Pst pst;
- TRC2(rlcTmmRcvFrmLi)
-
gCb->genSts.pdusRecv++;
gCb->genSts.pdusRecv++;
-
SFndLenMsg
(pdu, (MsgLen *)&msgLen);
+
ODU_GET_MSG_LEN
(pdu, (MsgLen *)&msgLen);
gCb->genSts.bytesRecv += msgLen;
gCb->genSts.bytesRecv += msgLen;
- /* If trace flag is enabled send the trace indication */
- if(gCb->init.trc == TRUE)
- {
- /* Populate the trace params */
- rlcLmmSendTrc(gCb, EVENT_UL_RRC_MSG_TRANS_TO_DU, pdu);
- }
/* Filling UL RRC Message Info */
RLC_ALLOC_SHRABL_BUF(RLC_MEM_REGION_UL, RLC_POOL,
/* Filling UL RRC Message Info */
RLC_ALLOC_SHRABL_BUF(RLC_MEM_REGION_UL, RLC_POOL,
@@
-305,25
+270,25
@@
Buffer *pdu;
ulRrcMsgInfo->rrcMsg, msgLen);
if (ulRrcMsgInfo->rrcMsg)
{
ulRrcMsgInfo->rrcMsg, msgLen);
if (ulRrcMsgInfo->rrcMsg)
{
-
SCpyMsgFix
(pdu, 0, msgLen, ulRrcMsgInfo->rrcMsg, (MsgLen *)©Len);
+
ODU_COPY_MSG_TO_FIX_BUF
(pdu, 0, msgLen, ulRrcMsgInfo->rrcMsg, (MsgLen *)©Len);
ulRrcMsgInfo->msgLen = msgLen;
/* Sending UL RRC Message transfeer to DU APP */
memset(&pst, 0, sizeof(Pst));
ulRrcMsgInfo->msgLen = msgLen;
/* Sending UL RRC Message transfeer to DU APP */
memset(&pst, 0, sizeof(Pst));
- FILL_PST_RLC_TO_DUAPP(pst,
SFndProcId(),
RLC_UL_INST, EVENT_UL_RRC_MSG_TRANS_TO_DU);
+ FILL_PST_RLC_TO_DUAPP(pst, RLC_UL_INST, EVENT_UL_RRC_MSG_TRANS_TO_DU);
rlcSendUlRrcMsgToDu(&pst, ulRrcMsgInfo);
}
else
{
rlcSendUlRrcMsgToDu(&pst, ulRrcMsgInfo);
}
else
{
- DU_LOG("\nRLC :
Memory allocation failed
");
+ DU_LOG("\nRLC :
rlcTmmRcvFrmMac: Memory allocation failed for UL RRC Msg
");
}
}
else
{
}
}
else
{
- DU_LOG("\nRLC :
Memory allocation failed
");
+ DU_LOG("\nRLC :
rlcTmmRcvFrmMac: Memory allocation failed for ulRrcMsgInfo
");
}
}
-
RETVOID
;
+
return
;
}
/**
}
/**
@@
-351,7
+316,6
@@
RlcCb *gCb;
RlcUlRbCb *rbCb;
#endif
{
RlcUlRbCb *rbCb;
#endif
{
- TRC2(rlcUlTmmReEstablish)
RLOG_ARG0(L_DEBUG,DBG_RBID,rbCb->rlcId.rbId,"do nothing for TMM for ReEstablish");
RETVOID;
RLOG_ARG0(L_DEBUG,DBG_RBID,rbCb->rlcId.rbId,"do nothing for TMM for ReEstablish");
RETVOID;