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
ff3a14f7
Commit
ff3a14f7
authored
Oct 15, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup rrc_gNB_modify_dedicatedRRCReconfiguration: pass UE context directly
parent
01b240eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
31 deletions
+7
-31
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+3
-20
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+3
-6
openair2/RRC/NR/rrc_gNB_NGAP.h
openair2/RRC/NR/rrc_gNB_NGAP.h
+1
-5
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
ff3a14f7
...
...
@@ -567,16 +567,10 @@ static void rrc_gNB_generate_dedicatedRRCReconfiguration(gNB_RRC_INST *rrc, gNB_
nr_rrc_transfer_protected_rrc_message
(
rrc
,
ue_p
,
DCCH
,
buffer
,
size
);
}
//-----------------------------------------------------------------------------
void
rrc_gNB_modify_dedicatedRRCReconfiguration
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
ue_context_pP
)
//-----------------------------------------------------------------------------
void
rrc_gNB_modify_dedicatedRRCReconfiguration
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
)
{
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
int
qos_flow_index
=
0
;
uint8_t
xid
=
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
);
uint8_t
xid
=
rrc_gNB_get_next_transaction_identifier
(
rrc
->
module_id
);
ue_p
->
xids
[
xid
]
=
RRC_PDUSESSION_MODIFY
;
struct
NR_RRCReconfiguration_v1530_IEs__dedicatedNAS_MessageList
*
dedicatedNAS_MessageList
=
...
...
@@ -678,18 +672,7 @@ rrc_gNB_modify_dedicatedRRCReconfiguration(
for
(
int
i
=
0
;
i
<
ue_p
->
nb_of_pdusessions
;
i
++
)
clear_nas_pdu
(
&
ue_p
->
pduSession
[
i
].
param
.
nas_pdu
);
LOG_I
(
NR_RRC
,
"[gNB %d] Frame %d, Logical Channel DL-DCCH, Generate 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 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 @
ff3a14f7
...
...
@@ -879,18 +879,16 @@ int rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(MessageDef *msg_p, instance_t ins
{
rrc_gNB_ue_context_t
*
ue_context_p
=
NULL
;
protocol_ctxt_t
ctxt
;
ngap_pdusession_modify_req_t
*
req
=
&
NGAP_PDUSESSION_MODIFY_REQ
(
msg_p
);
ue_context_p
=
rrc_gNB_get_ue_context
(
RC
.
nrrrc
[
instance
],
req
->
gNB_ue_ngap_id
);
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
instance
];
ue_context_p
=
rrc_gNB_get_ue_context
(
rrc
,
req
->
gNB_ue_ngap_id
);
if
(
ue_context_p
==
NULL
)
{
LOG_W
(
NR_RRC
,
"[gNB %ld] In NGAP_PDUSESSION_MODIFY_REQ: unknown UE from NGAP ids (%u)
\n
"
,
instance
,
req
->
gNB_ue_ngap_id
);
// TO implement return setup failed
return
(
-
1
);
}
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
);
ctxt
.
eNB_index
=
0
;
bool
all_failed
=
true
;
for
(
int
i
=
0
;
i
<
req
->
nb_pdusessions_tomodify
;
i
++
)
{
rrc_pdu_session_param_t
*
sess
;
...
...
@@ -925,8 +923,7 @@ int rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(MessageDef *msg_p, instance_t ins
}
if
(
!
all_failed
)
{
LOG_D
(
NR_RRC
,
"generate RRCReconfiguration
\n
"
);
rrc_gNB_modify_dedicatedRRCReconfiguration
(
&
ctxt
,
ue_context_p
);
rrc_gNB_modify_dedicatedRRCReconfiguration
(
rrc
,
UE
);
}
else
{
LOG_I
(
NR_RRC
,
"pdu session modify failed, fill NGAP_PDUSESSION_MODIFY_RESP with the pdu session information that failed to modify
\n
"
);
...
...
openair2/RRC/NR/rrc_gNB_NGAP.h
View file @
ff3a14f7
...
...
@@ -58,11 +58,7 @@ int rrc_gNB_process_NGAP_PDUSESSION_MODIFY_REQ(MessageDef *msg_p, instance_t ins
int
rrc_gNB_send_NGAP_PDUSESSION_MODIFY_RESP
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
,
uint8_t
xid
);
void
rrc_gNB_modify_dedicatedRRCReconfiguration
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
ue_context_pP
);
void
rrc_gNB_modify_dedicatedRRCReconfiguration
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
);
void
rrc_gNB_send_NGAP_UE_CONTEXT_RELEASE_REQ
(
const
module_id_t
gnb_mod_idP
,
const
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
ngap_Cause_t
causeP
,
const
long
cause_valueP
);
...
...
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