Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
988d98a4
Commit
988d98a4
authored
Sep 18, 2018
by
Bing-Kai Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send UL RRC MESSAGE TRANSFER
parent
b1313aaf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
28 deletions
+63
-28
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
+1
-1
openair2/F1AP/f1ap_du_rrc_message_transfer.c
openair2/F1AP/f1ap_du_rrc_message_transfer.c
+16
-12
openair2/F1AP/f1ap_du_rrc_message_transfer.h
openair2/F1AP/f1ap_du_rrc_message_transfer.h
+10
-8
openair2/LAYER2/RLC/rlc.c
openair2/LAYER2/RLC/rlc.c
+36
-7
No files found.
openair2/F1AP/f1ap_cu_rrc_message_transfer.c
View file @
988d98a4
...
@@ -213,7 +213,7 @@ int CU_send_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
...
@@ -213,7 +213,7 @@ int CU_send_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
;
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_DLRRCMessageTransferIEs__value_PR_GNB_DU_UE_F1AP_ID
;
ie
->
value
.
present
=
F1AP_DLRRCMessageTransferIEs__value_PR_GNB_DU_UE_F1AP_ID
;
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
du_ue_f1ap
_id
;
// TODO: f1ap_dl_rrc->gNB_DU_ue_id
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
f1ap_dl_rrc
->
gNB_DU_ue
_id
;
// TODO: f1ap_dl_rrc->gNB_DU_ue_id
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* optional */
/* optional */
...
...
openair2/F1AP/f1ap_du_rrc_message_transfer.c
View file @
988d98a4
...
@@ -152,7 +152,13 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
...
@@ -152,7 +152,13 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
}
}
//void DU_send_UL_RRC_MESSAGE_TRANSFER(F1AP_ULRRCMessageTransfer_t *ULRRCMessageTransfer) {
//void DU_send_UL_RRC_MESSAGE_TRANSFER(F1AP_ULRRCMessageTransfer_t *ULRRCMessageTransfer) {
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
void
)
{
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
module_id_t
module_idP
,
int
CC_idP
,
uint8_t
*
sduP
,
sdu_size_t
sdu_lenP
)
{
printf
(
"DU_send_UL_RRC_MESSAGE_TRANSFER
\n
"
);
F1AP_F1AP_PDU_t
pdu
;
F1AP_F1AP_PDU_t
pdu
;
F1AP_ULRRCMessageTransfer_t
*
out
;
F1AP_ULRRCMessageTransfer_t
*
out
;
F1AP_ULRRCMessageTransferIEs_t
*
ie
;
F1AP_ULRRCMessageTransferIEs_t
*
ie
;
...
@@ -185,7 +191,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
...
@@ -185,7 +191,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
;
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_GNB_DU_UE_F1AP_ID
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_GNB_DU_UE_F1AP_ID
;
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
651L
;
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
F1AP_get_UE_identifier
(
module_idP
,
CC_idP
,
0
)
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
/* mandatory */
...
@@ -204,8 +210,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
...
@@ -204,8 +210,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
ie
->
id
=
F1AP_ProtocolIE_ID_id_RRCContainer
;
ie
->
id
=
F1AP_ProtocolIE_ID_id_RRCContainer
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_RRCContainer
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_RRCContainer
;
OCTET_STRING_fromBuf
(
&
ie
->
value
.
choice
.
RRCContainer
,
"asdsa1d32sa1d31asd31as"
,
OCTET_STRING_fromBuf
(
&
ie
->
value
.
choice
.
RRCContainer
,
sduP
,
sdu_lenP
);
strlen
(
"asdsa1d32sa1d31asd31as"
));
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* encode */
/* encode */
...
@@ -227,14 +232,13 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
...
@@ -227,14 +232,13 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(void) {
}
}
/* UL RRC Message Transfer */
/* UL RRC Message Transfer */
int
DU_send_INITIAL_UL_RRC_MESSAGE_TRANSFER
(
int
DU_send_INITIAL_UL_RRC_MESSAGE_TRANSFER
(
module_id_t
module_idP
,
module_id_t
module_idP
,
int
CC_idP
,
int
CC_idP
,
int
UE_id
,
int
UE_id
,
rnti_t
rntiP
,
rnti_t
rntiP
,
uint8_t
*
sduP
,
uint8_t
*
sduP
,
sdu_size_t
sdu_lenP
sdu_size_t
sdu_lenP
)
{
)
{
F1AP_F1AP_PDU_t
pdu
;
F1AP_F1AP_PDU_t
pdu
;
F1AP_InitialULRRCMessageTransfer_t
*
out
;
F1AP_InitialULRRCMessageTransfer_t
*
out
;
F1AP_InitialULRRCMessageTransferIEs_t
*
ie
;
F1AP_InitialULRRCMessageTransferIEs_t
*
ie
;
...
...
openair2/F1AP/f1ap_du_rrc_message_transfer.h
View file @
988d98a4
...
@@ -39,10 +39,12 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
...
@@ -39,10 +39,12 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
uint32_t
stream
,
uint32_t
stream
,
F1AP_F1AP_PDU_t
*
pdu
);
F1AP_F1AP_PDU_t
*
pdu
);
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
void
);
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
module_id_t
module_idP
,
int
CC_idP
,
uint8_t
*
sduP
,
sdu_size_t
sdu_lenP
);
int
DU_send_INITIAL_UL_RRC_MESSAGE_TRANSFER
(
int
DU_send_INITIAL_UL_RRC_MESSAGE_TRANSFER
(
module_id_t
module_idP
,
module_id_t
module_idP
,
int
CC_idP
,
int
CC_idP
,
int
UE_id
,
int
UE_id
,
rnti_t
rntiP
,
rnti_t
rntiP
,
...
...
openair2/LAYER2/RLC/rlc.c
View file @
988d98a4
...
@@ -37,6 +37,8 @@
...
@@ -37,6 +37,8 @@
#include "assertions.h"
#include "assertions.h"
#include "common/ran_context.h"
extern
RAN_CONTEXT_t
RC
;
extern
boolean_t
pdcp_data_ind
(
extern
boolean_t
pdcp_data_ind
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
,
...
@@ -689,6 +691,30 @@ void rlc_data_ind (
...
@@ -689,6 +691,30 @@ void rlc_data_ind (
else
else
#endif
/*UETARGET*/
#endif
/*UETARGET*/
{
{
switch
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
node_type
){
case
ngran_eNB_CU
:
case
ngran_ng_eNB_CU
:
case
ngran_gNB_CU
:
pdcp_data_ind
(
ctxt_pP
,
1
,
// srb_flagP,
0
,
// MBMS_flagP,
rb_idP
,
sdu_sizeP
,
sdu_pP
);
break
;
case
ngran_eNB_DU
:
case
ngran_gNB_DU
:
DU_send_UL_RRC_MESSAGE_TRANSFER
(
ctxt_pP
->
module_id
,
rb_idP
,
sdu_pP
,
sdu_sizeP
);
break
;
default:
pdcp_data_ind
(
pdcp_data_ind
(
ctxt_pP
,
ctxt_pP
,
srb_flagP
,
srb_flagP
,
...
@@ -696,6 +722,9 @@ void rlc_data_ind (
...
@@ -696,6 +722,9 @@ void rlc_data_ind (
rb_idP
,
rb_idP
,
sdu_sizeP
,
sdu_sizeP
,
sdu_pP
);
sdu_pP
);
break
;
}
}
}
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment