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
cec54f1c
Commit
cec54f1c
authored
Oct 14, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Pass UE context directly into rrc_gNB_send_NGAP_UPLINK_NAS()
parent
098f45c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
29 deletions
+5
-29
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+1
-9
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+3
-14
openair2/RRC/NR/rrc_gNB_NGAP.h
openair2/RRC/NR/rrc_gNB_NGAP.h
+1
-6
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
cec54f1c
...
...
@@ -1677,16 +1677,8 @@ int rrc_gNB_decode_dcch(const protocol_ctxt_t *const ctxt_pP,
break
;
case
NR_UL_DCCH_MessageType__c1_PR_ulInformationTransfer
:
LOG_D
(
NR_RRC
,
"Recived RRC GNB UL Information Transfer
\n
"
);
if
(
!
ue_context_p
)
{
LOG_W
(
NR_RRC
,
"Processing ulInformationTransfer UE %lx, ue_context_p is NULL
\n
"
,
ctxt_pP
->
rntiMaybeUEid
);
break
;
}
LOG_D
(
NR_RRC
,
"[MSG] RRC UL Information Transfer
\n
"
);
LOG_DUMPMSG
(
RRC
,
DEBUG_RRC
,
(
char
*
)
Rx_sdu
,
sdu_sizeP
,
"[MSG] RRC UL Information Transfer
\n
"
);
rrc_gNB_send_NGAP_UPLINK_NAS
(
ctxt_pP
,
ue_context_p
,
ul_dcch_msg
);
rrc_gNB_send_NGAP_UPLINK_NAS
(
rrc
,
UE
,
ul_dcch_msg
);
break
;
case
NR_UL_DCCH_MessageType__c1_PR_securityModeComplete
:
...
...
openair2/RRC/NR/rrc_gNB_NGAP.c
View file @
cec54f1c
...
...
@@ -652,32 +652,21 @@ int rrc_gNB_process_NGAP_DOWNLINK_NAS(MessageDef *msg_p, instance_t instance, mu
return
0
;
}
//------------------------------------------------------------------------------
void
rrc_gNB_send_NGAP_UPLINK_NAS
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
NR_UL_DCCH_Message_t
*
const
ul_dcch_msg
)
//------------------------------------------------------------------------------
void
rrc_gNB_send_NGAP_UPLINK_NAS
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
,
const
NR_UL_DCCH_Message_t
*
const
ul_dcch_msg
)
{
MessageDef
*
msg_p
;
NR_ULInformationTransfer_t
*
ulInformationTransfer
=
ul_dcch_msg
->
message
.
choice
.
c1
->
choice
.
ulInformationTransfer
;
gNB_RRC_UE_t
*
UE
=
&
ue_context_pP
->
ue_context
;
if
(
ulInformationTransfer
->
criticalExtensions
.
present
==
NR_ULInformationTransfer__criticalExtensions_PR_ulInformationTransfer
)
{
NR_DedicatedNAS_Message_t
*
nas
=
ulInformationTransfer
->
criticalExtensions
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
;
uint8_t
*
buf
=
malloc
(
nas
->
size
);
AssertFatal
(
buf
!=
NULL
,
"out of memory
\n
"
);
memcpy
(
buf
,
nas
->
buf
,
nas
->
size
);
msg_p
=
itti_alloc_new_message
(
TASK_RRC_GNB
,
0
,
NGAP_UPLINK_NAS
);
msg_p
=
itti_alloc_new_message
(
TASK_RRC_GNB
,
rrc
->
module_id
,
NGAP_UPLINK_NAS
);
NGAP_UPLINK_NAS
(
msg_p
).
gNB_ue_ngap_id
=
UE
->
rrc_ue_id
;
NGAP_UPLINK_NAS
(
msg_p
).
nas_pdu
.
length
=
nas
->
size
;
NGAP_UPLINK_NAS
(
msg_p
).
nas_pdu
.
buffer
=
buf
;
// extract_imsi(NGAP_UPLINK_NAS (msg_p).nas_pdu.buffer,
// NGAP_UPLINK_NAS (msg_p).nas_pdu.length,
// ue_context_pP);
itti_send_msg_to_task
(
TASK_NGAP
,
ctxt_pP
->
instance
,
msg_p
);
itti_send_msg_to_task
(
TASK_NGAP
,
rrc
->
module_id
,
msg_p
);
LOG_D
(
NR_RRC
,
"Send RRC GNB UL Information Transfer
\n
"
);
}
}
...
...
openair2/RRC/NR/rrc_gNB_NGAP.h
View file @
cec54f1c
...
...
@@ -48,12 +48,7 @@ void rrc_gNB_send_NGAP_INITIAL_CONTEXT_SETUP_RESP(gNB_RRC_INST *rrc, gNB_RRC_UE_
int
rrc_gNB_process_NGAP_DOWNLINK_NAS
(
MessageDef
*
msg_p
,
instance_t
instance
,
mui_t
*
rrc_gNB_mui
);
void
rrc_gNB_send_NGAP_UPLINK_NAS
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
NR_UL_DCCH_Message_t
*
const
ul_dcch_msg
);
void
rrc_gNB_send_NGAP_UPLINK_NAS
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
,
const
NR_UL_DCCH_Message_t
*
const
ul_dcch_msg
);
void
rrc_gNB_send_NGAP_PDUSESSION_SETUP_RESP
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
,
uint8_t
xid
);
...
...
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