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
452ccc32
Commit
452ccc32
authored
Oct 15, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup rrc_gNB_generate_dedicatedRRCReconfiguration_release()
Pass RRC and UE context pointers directly.
parent
dbeb1ea6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
32 deletions
+13
-32
openair2/RRC/NR/nr_rrc_proto.h
openair2/RRC/NR/nr_rrc_proto.h
+5
-7
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+6
-21
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+2
-4
No files found.
openair2/RRC/NR/nr_rrc_proto.h
View file @
452ccc32
...
...
@@ -81,13 +81,11 @@ void rrc_config_dl_ptrs_params(NR_BWP_Downlink_t *bwp, long *ptrsNrb, long *ptrs
int
nr_rrc_reconfiguration_req
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
,
const
int
dl_bwp_id
,
const
int
ul_bwp_id
);
void
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
uint8_t
xid
,
uint32_t
nas_length
,
uint8_t
*
nas_buffer
);
void
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
,
uint8_t
xid
,
uint32_t
nas_length
,
uint8_t
*
nas_buffer
);
void
rrc_gNB_generate_dedicatedRRCReconfiguration
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
ue_context_pP
);
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
452ccc32
...
...
@@ -709,17 +709,13 @@ rrc_gNB_modify_dedicatedRRCReconfiguration(
}
//-----------------------------------------------------------------------------
void
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
uint8_t
xid
,
uint32_t
nas_length
,
uint8_t
*
nas_buffer
)
void
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
,
uint8_t
xid
,
uint32_t
nas_length
,
uint8_t
*
nas_buffer
)
//-----------------------------------------------------------------------------
{
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
NR_DRB_ToReleaseList_t
*
DRB_Release_configList2
=
CALLOC
(
sizeof
(
*
DRB_Release_configList2
),
1
);
for
(
int
i
=
0
;
i
<
NB_RB_MAX
;
i
++
)
{
...
...
@@ -760,18 +756,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration_release(
free
(
nas_buffer
);
}
LOG_I
(
NR_RRC
,
"[gNB %d] Frame %d, Logical Channel DL-DCCH, Generate NR_RRCReconfiguration (bytes %d, UE RNTI %x)
\n
"
,
ctxt_pP
->
module_id
,
ctxt_pP
->
frame
,
size
,
ue_p
->
rnti
);
LOG_D
(
NR_RRC
,
"[FRAME %05d][RRC_gNB][MOD %u][][--- PDCP_DATA_REQ/%d Bytes (rrcReconfiguration to UE %x MUI %d) --->][PDCP][MOD %u][RB %u]
\n
"
,
ctxt_pP
->
frame
,
ctxt_pP
->
module_id
,
size
,
ue_p
->
rnti
,
rrc_gNB_mui
,
ctxt_pP
->
module_id
,
DCCH
);
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
ctxt_pP
->
module_id
];
LOG_I
(
NR_RRC
,
"UE %d: Generate NR_RRCReconfiguration (bytes %d)
\n
"
,
ue_p
->
rrc_ue_id
,
size
);
nr_rrc_transfer_protected_rrc_message
(
rrc
,
ue_p
,
DCCH
,
buffer
,
size
);
}
...
...
openair2/RRC/NR/rrc_gNB_NGAP.c
View file @
452ccc32
...
...
@@ -1219,7 +1219,6 @@ int rrc_gNB_process_NGAP_PDUSESSION_RELEASE_COMMAND(MessageDef *msg_p, instance_
//------------------------------------------------------------------------------
{
uint32_t
gNB_ue_ngap_id
;
protocol_ctxt_t
ctxt
;
ngap_pdusession_release_command_t
*
cmd
=
&
NGAP_PDUSESSION_RELEASE_COMMAND
(
msg_p
);
gNB_ue_ngap_id
=
cmd
->
gNB_ue_ngap_id
;
if
(
cmd
->
nb_pdusessions_torelease
>
NGAP_MAX_PDUSESSION
)
{
...
...
@@ -1236,11 +1235,10 @@ int rrc_gNB_process_NGAP_PDUSESSION_RELEASE_COMMAND(MessageDef *msg_p, instance_
LOG_I
(
NR_RRC
,
"[gNB %ld] gNB_ue_ngap_id %u
\n
"
,
instance
,
gNB_ue_ngap_id
);
gNB_RRC_UE_t
*
UE
=
&
ue_context_p
->
ue_context
;
PROTOCOL_CTXT_SET_BY_INSTANCE
(
&
ctxt
,
instance
,
GNB_FLAG_YES
,
UE
->
rrc_ue_id
,
0
,
0
);
LOG_I
(
NR_RRC
,
"PDU Session Release Command: AMF_UE_NGAP_ID %lu rrc_ue_id %u release_pdusessions %d
\n
"
,
cmd
->
amf_ue_ngap_id
,
gNB_ue_ngap_id
,
cmd
->
nb_pdusessions_torelease
);
bool
found
=
false
;
uint8_t
xid
=
rrc_gNB_get_next_transaction_identifier
(
ctxt
.
module_id
);
uint8_t
xid
=
rrc_gNB_get_next_transaction_identifier
(
rrc
->
module_id
);
UE
->
xids
[
xid
]
=
RRC_PDUSESSION_RELEASE
;
for
(
int
pdusession
=
0
;
pdusession
<
cmd
->
nb_pdusessions_torelease
;
pdusession
++
)
{
rrc_pdu_session_param_t
*
pduSession
=
find_pduSession
(
UE
,
cmd
->
pdusession_release_params
[
pdusession
].
pdusession_id
,
false
);
...
...
@@ -1268,7 +1266,7 @@ int rrc_gNB_process_NGAP_PDUSESSION_RELEASE_COMMAND(MessageDef *msg_p, instance_
if
(
found
)
{
// TODO RRCReconfiguration To UE
LOG_I
(
NR_RRC
,
"Send RRCReconfiguration To UE
\n
"
);
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
&
ctxt
,
ue_context_p
,
xid
,
cmd
->
nas_pdu
.
length
,
cmd
->
nas_pdu
.
buffer
);
rrc_gNB_generate_dedicatedRRCReconfiguration_release
(
rrc
,
UE
,
xid
,
cmd
->
nas_pdu
.
length
,
cmd
->
nas_pdu
.
buffer
);
}
else
{
// gtp tunnel delete
LOG_I
(
NR_RRC
,
"gtp tunnel delete all tunnels for UE %04x
\n
"
,
UE
->
rnti
);
...
...
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