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
lizhongxiao
OpenXG-RAN
Commits
ac5e8cbd
Commit
ac5e8cbd
authored
Sep 20, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UL_RRC_MESSAGE_TRANSFER arrives in CU, which crashes :-(
parent
43def3d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
16 deletions
+28
-16
openair2/F1AP/f1ap_du_rrc_message_transfer.c
openair2/F1AP/f1ap_du_rrc_message_transfer.c
+16
-7
openair2/F1AP/f1ap_du_rrc_message_transfer.h
openair2/F1AP/f1ap_du_rrc_message_transfer.h
+7
-2
openair2/LAYER2/RLC/rlc.c
openair2/LAYER2/RLC/rlc.c
+5
-7
No files found.
openair2/F1AP/f1ap_du_rrc_message_transfer.c
View file @
ac5e8cbd
...
...
@@ -329,10 +329,15 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
}
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
instance_t
instance
,
f1ap_ul_rrc_message_t
*
f1ap_ul_rrc
)
{
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
const
rb_id_t
rb_idP
,
const
sdu_size_t
sdu_sizeP
,
const
uint8_t
*
sdu_pP
)
{
LOG_I
(
DU_F1AP
,
"DU_send_UL_RRC_MESSAGE_TRANSFER
\n
"
);
rnti_t
rnti
=
ctxt_pP
->
rnti
;
F1AP_F1AP_PDU_t
pdu
;
F1AP_ULRRCMessageTransfer_t
*
out
;
...
...
@@ -357,7 +362,11 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_CU_UE_F1AP_ID
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_GNB_CU_UE_F1AP_ID
;
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
=
f1ap_du_ue
[
instance
].
cu_ue_f1ap_id
[
f1ap_get_uid_by_rnti
(
&
f1ap_du_ue
[
instance
],
f1ap_ul_rrc
->
rnti
)];
instance_t
instance
=
ctxt_pP
->
module_id
;
ie
->
value
.
choice
.
GNB_CU_UE_F1AP_ID
=
f1ap_du_ue
[
instance
].
cu_ue_f1ap_id
[
f1ap_get_uid_by_rnti
(
&
f1ap_du_ue
[
instance
],
rnti
)];
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
...
...
@@ -366,7 +375,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
ie
->
id
=
F1AP_ProtocolIE_ID_id_gNB_DU_UE_F1AP_ID
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_GNB_DU_UE_F1AP_ID
;
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
f1ap_du_ue
[
instance
].
du_ue_f1ap_id
[
f1ap_get_uid_by_rnti
(
&
f1ap_du_ue
[
instance
],
f1ap_ul_rrc
->
rnti
)];
ie
->
value
.
choice
.
GNB_DU_UE_F1AP_ID
=
f1ap_du_ue
[
instance
].
du_ue_f1ap_id
[
f1ap_get_uid_by_rnti
(
&
f1ap_du_ue
[
instance
],
rnti
)];
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* mandatory */
...
...
@@ -375,7 +384,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
ie
->
id
=
F1AP_ProtocolIE_ID_id_SRBID
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_SRBID
;
ie
->
value
.
choice
.
SRBID
=
f1ap_ul_rrc
->
srb_id
;
ie
->
value
.
choice
.
SRBID
=
rb_idP
;
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
// issue in here
...
...
@@ -385,7 +394,7 @@ int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
ie
->
id
=
F1AP_ProtocolIE_ID_id_RRCContainer
;
ie
->
criticality
=
F1AP_Criticality_reject
;
ie
->
value
.
present
=
F1AP_ULRRCMessageTransferIEs__value_PR_RRCContainer
;
OCTET_STRING_fromBuf
(
&
ie
->
value
.
choice
.
RRCContainer
,
f1ap_ul_rrc
->
rrc_container
,
f1ap_ul_rrc
->
rrc_container_length
);
OCTET_STRING_fromBuf
(
&
ie
->
value
.
choice
.
RRCContainer
,
sdu_pP
,
sdu_sizeP
);
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
/* encode */
...
...
openair2/F1AP/f1ap_du_rrc_message_transfer.h
View file @
ac5e8cbd
...
...
@@ -39,9 +39,14 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
uint32_t
stream
,
F1AP_F1AP_PDU_t
*
pdu
);
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
instance_t
instance
,
int
DU_send_UL_RRC_MESSAGE_TRANSFER
(
const
protocol_ctxt_t
*
const
ctxt_p
,
const
rb_id_t
rb_id
,
const
sdu_size_t
sdu_size
,
const
uint8_t
*
sdu_p
);
/*
instance_t instance,
f1ap_ul_rrc_message_t *f1ap_ul_rrc);
*/
int
DU_send_INITIAL_UL_RRC_MESSAGE_TRANSFER
(
module_id_t
module_idP
,
int
CC_idP
,
int
UE_id
,
...
...
openair2/LAYER2/RLC/rlc.c
View file @
ac5e8cbd
...
...
@@ -705,14 +705,12 @@ void rlc_data_ind (
sdu_sizeP
,
sdu_pP
);
break
;
case
ngran_eNB_DU
:
case
ngran_eNB_DU
:
case
ngran_gNB_DU
:
DU_send_UL_RRC_MESSAGE_TRANSFER
(
ctxt_pP
,
rb_idP
,
sdu_pP
,
sdu_sizeP
);
DU_send_UL_RRC_MESSAGE_TRANSFER
(
ctxt_pP
,
rb_idP
,
sdu_sizeP
,
sdu_pP
->
data
);
break
;
default:
...
...
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