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
spbro
OpenXG-RAN
Commits
19a51f67
Commit
19a51f67
authored
Mar 28, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flag for detach after RRCrelease at UE
parent
851cf969
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+6
-1
openair2/RRC/NR_UE/rrc_defs.h
openair2/RRC/NR_UE/rrc_defs.h
+1
-0
No files found.
openair2/RRC/NR_UE/rrc_UE.c
View file @
19a51f67
...
...
@@ -311,6 +311,7 @@ NR_UE_RRC_INST_t* nr_rrc_init_ue(char* uecap_file, int nb_inst)
rrc
->
dl_bwp_id
=
0
;
rrc
->
ul_bwp_id
=
0
;
rrc
->
as_security_activated
=
false
;
rrc
->
detach_after_release
=
false
;
FILE
*
f
=
NULL
;
if
(
uecap_file
)
...
...
@@ -1627,6 +1628,8 @@ static int nr_rrc_ue_decode_dcch(NR_UE_RRC_INST_t *rrc,
LOG_I
(
NR_RRC
,
"[UE %ld] Received RRC Release (gNB %d)
\n
"
,
rrc
->
ue_id
,
gNB_indexP
);
// TODO properly implement procedures in 5.3.8.3 of 38.331
NR_Release_Cause_t
cause
=
OTHER
;
if
(
rrc
->
detach_after_release
)
rrc
->
nrRrcState
=
RRC_STATE_DETACH_NR
;
nr_rrc_going_to_IDLE
(
rrc
,
cause
,
dl_dcch_msg
->
message
.
choice
.
c1
->
choice
.
rrcRelease
);
break
;
...
...
@@ -1785,7 +1788,9 @@ void *rrc_nrue(void *notUsed)
break
;
case
NAS_DETACH_REQ
:
if
(
!
NAS_DETACH_REQ
(
msg_p
).
wait_release
)
{
if
(
NAS_DETACH_REQ
(
msg_p
).
wait_release
)
rrc
->
detach_after_release
=
true
;
else
{
rrc
->
nrRrcState
=
RRC_STATE_DETACH_NR
;
NR_Release_Cause_t
release_cause
=
OTHER
;
nr_rrc_going_to_IDLE
(
rrc
,
release_cause
,
NULL
);
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
19a51f67
...
...
@@ -216,6 +216,7 @@ typedef struct NR_UE_RRC_INST_s {
e_NR_IntegrityProtAlgorithm
integrityProtAlgorithm
;
long
keyToUse
;
bool
as_security_activated
;
bool
detach_after_release
;
long
selected_plmn_identity
;
Rrc_State_NR_t
nrRrcState
;
...
...
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