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
b5499e14
Commit
b5499e14
authored
Feb 08, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trigger F1 UE context release if no UE context in RRC
parent
2270cd4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
15 deletions
+29
-15
executables/nr-cuup.c
executables/nr-cuup.c
+3
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+26
-15
No files found.
executables/nr-cuup.c
View file @
b5499e14
...
...
@@ -149,6 +149,9 @@ f1ap_cudu_inst_t *getCxt(instance_t instanceP)
return
&
fake
;
}
configmodule_interface_t
*
uniqCfg
=
NULL
;
void
rrc_gNB_send_NGAP_UE_CONTEXT_RELEASE_COMPLETE
(
instance_t
instance
,
uint32_t
gNB_ue_ngap_id
)
{
};
int
main
(
int
argc
,
char
**
argv
)
{
/// static configuration for NR at the moment
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
b5499e14
...
...
@@ -122,6 +122,20 @@ mui_t rrc_gNB_mui = 0;
} \
}
typedef
struct
deliver_ue_ctxt_release_data_t
{
gNB_RRC_INST
*
rrc
;
f1ap_ue_context_release_cmd_t
*
release_cmd
;
sctp_assoc_t
assoc_id
;
}
deliver_ue_ctxt_release_data_t
;
static
void
rrc_deliver_ue_ctxt_release_cmd
(
void
*
deliver_pdu_data
,
ue_id_t
ue_id
,
int
srb_id
,
char
*
buf
,
int
size
,
int
sdu_id
)
{
DevAssert
(
deliver_pdu_data
!=
NULL
);
deliver_ue_ctxt_release_data_t
*
data
=
deliver_pdu_data
;
data
->
release_cmd
->
rrc_container
=
(
uint8_t
*
)
buf
;
data
->
release_cmd
->
rrc_container_length
=
size
;
data
->
rrc
->
mac_rrc
.
ue_context_release_command
(
data
->
assoc_id
,
data
->
release_cmd
);
}
///---------------------------------------------------------------------------------------------------------------///
///---------------------------------------------------------------------------------------------------------------///
...
...
@@ -1834,7 +1848,18 @@ static void rrc_CU_process_ue_context_release_request(MessageDef *msg_p)
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
instance
];
rrc_gNB_ue_context_t
*
ue_context_p
=
rrc_gNB_get_ue_context
(
rrc
,
req
->
gNB_CU_ue_id
);
if
(
!
ue_context_p
)
{
LOG_E
(
RRC
,
"could not find UE context for CU UE ID %u, aborting transaction
\n
"
,
req
->
gNB_CU_ue_id
);
LOG_W
(
RRC
,
"could not find UE context for CU UE ID %u: auto-generate release command
\n
"
,
req
->
gNB_CU_ue_id
);
uint8_t
buffer
[
RRC_BUF_SIZE
]
=
{
0
};
int
size
=
do_NR_RRCRelease
(
buffer
,
RRC_BUF_SIZE
,
rrc_gNB_get_next_transaction_identifier
(
0
));
f1ap_ue_context_release_cmd_t
ue_context_release_cmd
=
{
.
gNB_CU_ue_id
=
req
->
gNB_CU_ue_id
,
.
gNB_DU_ue_id
=
req
->
gNB_DU_ue_id
,
.
cause
=
F1AP_CAUSE_RADIO_NETWORK
,
.
cause_value
=
10
,
// 10 = F1AP_CauseRadioNetwork_normal_release
.
srb_id
=
DCCH
,
};
deliver_ue_ctxt_release_data_t
data
=
{.
rrc
=
rrc
,
.
release_cmd
=
&
ue_context_release_cmd
};
nr_pdcp_data_req_srb
(
req
->
gNB_CU_ue_id
,
DCCH
,
rrc_gNB_mui
++
,
size
,
buffer
,
rrc_deliver_ue_ctxt_release_cmd
,
&
data
);
return
;
}
...
...
@@ -2534,20 +2559,6 @@ rrc_gNB_generate_UECapabilityEnquiry(
nr_rrc_transfer_protected_rrc_message
(
rrc
,
ue
,
DCCH
,
buffer
,
size
);
}
typedef
struct
deliver_ue_ctxt_release_data_t
{
gNB_RRC_INST
*
rrc
;
f1ap_ue_context_release_cmd_t
*
release_cmd
;
sctp_assoc_t
assoc_id
;
}
deliver_ue_ctxt_release_data_t
;
static
void
rrc_deliver_ue_ctxt_release_cmd
(
void
*
deliver_pdu_data
,
ue_id_t
ue_id
,
int
srb_id
,
char
*
buf
,
int
size
,
int
sdu_id
)
{
DevAssert
(
deliver_pdu_data
!=
NULL
);
deliver_ue_ctxt_release_data_t
*
data
=
deliver_pdu_data
;
data
->
release_cmd
->
rrc_container
=
(
uint8_t
*
)
buf
;
data
->
release_cmd
->
rrc_container_length
=
size
;
data
->
rrc
->
mac_rrc
.
ue_context_release_command
(
data
->
assoc_id
,
data
->
release_cmd
);
}
//-----------------------------------------------------------------------------
/*
* Generate the RRC Connection Release to UE.
...
...
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