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
94a3a61e
Commit
94a3a61e
authored
Oct 17, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse rrc_forward_ue_nas_message() for DL Information Transfer
parent
65b9af54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
21 deletions
+7
-21
openair2/RRC/NR/nr_rrc_proto.h
openair2/RRC/NR/nr_rrc_proto.h
+2
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+1
-1
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+4
-20
No files found.
openair2/RRC/NR/nr_rrc_proto.h
View file @
94a3a61e
...
...
@@ -74,6 +74,8 @@ int parse_CG_ConfigInfo(gNB_RRC_INST *rrc, NR_CG_ConfigInfo_t *CG_ConfigInfo, x2
void
rrc_gNB_generate_SecurityModeCommand
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
ue_p
);
void
rrc_forward_ue_nas_message
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
);
unsigned
int
rrc_gNB_get_next_transaction_identifier
(
module_id_t
gnb_mod_idP
);
void
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
94a3a61e
...
...
@@ -1372,7 +1372,7 @@ static int handle_rrcReestablishmentComplete(const protocol_ctxt_t *const ctxt_p
return
0
;
}
static
void
rrc_forward_ue_nas_message
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
)
void
rrc_forward_ue_nas_message
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
)
{
if
(
UE
->
nas_pdu
.
buffer
==
NULL
||
UE
->
nas_pdu
.
length
==
0
)
return
;
// no problem: the UE will re-request a NAS PDU
...
...
openair2/RRC/NR/rrc_gNB_NGAP.c
View file @
94a3a61e
...
...
@@ -620,11 +620,9 @@ static void set_UE_security_algos(const gNB_RRC_INST *rrc, gNB_RRC_UE_t *UE, con
int
rrc_gNB_process_NGAP_DOWNLINK_NAS
(
MessageDef
*
msg_p
,
instance_t
instance
,
mui_t
*
rrc_gNB_mui
)
//------------------------------------------------------------------------------
{
uint32_t
length
;
uint8_t
buffer
[
4096
];
protocol_ctxt_t
ctxt
=
{
0
};
ngap_downlink_nas_t
*
req
=
&
NGAP_DOWNLINK_NAS
(
msg_p
);
rrc_gNB_ue_context_t
*
ue_context_p
=
rrc_gNB_get_ue_context
(
RC
.
nrrrc
[
instance
],
req
->
gNB_ue_ngap_id
);
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
instance
];
rrc_gNB_ue_context_t
*
ue_context_p
=
rrc_gNB_get_ue_context
(
rrc
,
req
->
gNB_ue_ngap_id
);
if
(
ue_context_p
==
NULL
)
{
/* Can not associate this message to an UE index, send a failure to NGAP and discard it! */
...
...
@@ -641,22 +639,8 @@ int rrc_gNB_process_NGAP_DOWNLINK_NAS(MessageDef *msg_p, instance_t instance, mu
}
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
);
/* Create message for PDCP (DLInformationTransfer_t) */
length
=
do_NR_DLInformationTransfer
(
buffer
,
sizeof
(
buffer
),
rrc_gNB_get_next_transaction_identifier
(
instance
),
req
->
nas_pdu
.
length
,
req
->
nas_pdu
.
buffer
);
LOG_DUMPMSG
(
NR_RRC
,
DEBUG_RRC
,
buffer
,
length
,
"[MSG] RRC DL Information Transfer
\n
"
);
/*
* switch UL or DL NAS message without RRC piggybacked to SRB2 if active.
*/
AssertFatal
(
!
NODE_IS_DU
(
RC
.
nrrrc
[
ctxt
.
module_id
]
->
node_type
),
"illegal node type DU: receiving NGAP messages at this node
\n
"
);
/* Transfer data to PDCP */
rb_id_t
srb_id
=
UE
->
Srb
[
2
].
Active
?
DCCH1
:
DCCH
;
nr_rrc_transfer_protected_rrc_message
(
RC
.
nrrrc
[
instance
],
UE
,
srb_id
,
buffer
,
length
);
UE
->
nas_pdu
=
req
->
nas_pdu
;
rrc_forward_ue_nas_message
(
rrc
,
UE
);
return
0
;
}
...
...
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