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
0056ac7b
Commit
0056ac7b
authored
Oct 14, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Pass UE context into rrc_gNB_process_MeasurementReport()
parent
d5274af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+5
-20
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
0056ac7b
...
...
@@ -1207,10 +1207,8 @@ fallback_rrc_setup:
return
;
}
static
void
process_Periodical_Measurement_Report
(
rrc_gNB_ue_context_t
*
ue_conte
xt
,
NR_MeasurementReport_t
*
measurementReport
)
static
void
process_Periodical_Measurement_Report
(
gNB_RRC_UE_t
*
ue_ct
xt
,
NR_MeasurementReport_t
*
measurementReport
)
{
// LOG_I(NR_RRC, "Periodical Event Report! Do Nothing for now...\n");
gNB_RRC_UE_t
*
ue_ctxt
=
&
ue_context
->
ue_context
;
ASN_STRUCT_FREE
(
asn_DEF_NR_MeasResults
,
ue_ctxt
->
measResults
);
ue_ctxt
->
measResults
=
NULL
;
...
...
@@ -1300,9 +1298,8 @@ static void process_Event_Based_Measurement_Report(NR_ReportConfigNR_t *report,
}
}
static
void
rrc_gNB_process_MeasurementReport
(
rrc_gNB_ue_context_t
*
ue_context
,
NR_MeasurementReport_t
*
measurementReport
)
static
void
rrc_gNB_process_MeasurementReport
(
gNB_RRC_UE_t
*
UE
,
NR_MeasurementReport_t
*
measurementReport
)
{
gNB_RRC_UE_t
*
UE
=
&
ue_context
->
ue_context
;
NR_MeasurementReport__criticalExtensions_PR
p
=
measurementReport
->
criticalExtensions
.
present
;
if
(
p
!=
NR_MeasurementReport__criticalExtensions_PR_measurementReport
||
measurementReport
->
criticalExtensions
.
choice
.
measurementReport
==
NULL
)
{
...
...
@@ -1350,7 +1347,7 @@ static void rrc_gNB_process_MeasurementReport(rrc_gNB_ue_context_t *ue_context,
}
if
(
report_config
->
choice
.
reportConfigNR
->
reportType
.
present
==
NR_ReportConfigNR__reportType_PR_periodical
)
return
process_Periodical_Measurement_Report
(
ue_context
,
measurementReport
);
return
process_Periodical_Measurement_Report
(
UE
,
measurementReport
);
if
(
report_config
->
choice
.
reportConfigNR
->
reportType
.
present
!=
NR_ReportConfigNR__reportType_PR_eventTriggered
)
{
LOG_D
(
NR_RRC
,
"Incoming Report Type: %d is not supported!
\n
"
,
report_config
->
choice
.
reportConfigNR
->
reportType
.
present
);
...
...
@@ -1655,6 +1652,7 @@ int rrc_gNB_decode_dcch(const protocol_ctxt_t *const ctxt_pP,
LOG_E
(
RRC
,
"could not find UE context for CU UE ID %lu, aborting transaction
\n
"
,
ctxt_pP
->
rntiMaybeUEid
);
return
-
1
;
}
gNB_RRC_UE_t
*
UE
=
&
ue_context_p
->
ue_context
;
if
((
Srb_id
!=
1
)
&&
(
Srb_id
!=
2
))
{
LOG_E
(
NR_RRC
,
"Received message on SRB%ld, should not have ...
\n
"
,
Srb_id
);
...
...
@@ -1662,15 +1660,6 @@ int rrc_gNB_decode_dcch(const protocol_ctxt_t *const ctxt_pP,
LOG_D
(
NR_RRC
,
"Received message on SRB%ld
\n
"
,
Srb_id
);
}
LOG_D
(
NR_RRC
,
"Decoding UL-DCCH Message
\n
"
);
{
for
(
int
i
=
0
;
i
<
sdu_sizeP
;
i
++
)
{
LOG_T
(
NR_RRC
,
"%x."
,
Rx_sdu
[
i
]);
}
LOG_T
(
NR_RRC
,
"
\n
"
);
}
NR_UL_DCCH_Message_t
*
ul_dcch_msg
=
NULL
;
asn_dec_rval_t
dec_rval
=
uper_decode
(
NULL
,
&
asn_DEF_NR_UL_DCCH_Message
,
(
void
**
)
&
ul_dcch_msg
,
Rx_sdu
,
sdu_sizeP
,
0
,
0
);
...
...
@@ -1699,11 +1688,7 @@ int rrc_gNB_decode_dcch(const protocol_ctxt_t *const ctxt_pP,
break
;
case
NR_UL_DCCH_MessageType__c1_PR_measurementReport
:
DevAssert
(
ul_dcch_msg
!=
NULL
&&
ul_dcch_msg
->
message
.
present
==
NR_UL_DCCH_MessageType_PR_c1
&&
ul_dcch_msg
->
message
.
choice
.
c1
&&
ul_dcch_msg
->
message
.
choice
.
c1
->
present
==
NR_UL_DCCH_MessageType__c1_PR_measurementReport
);
rrc_gNB_process_MeasurementReport
(
ue_context_p
,
ul_dcch_msg
->
message
.
choice
.
c1
->
choice
.
measurementReport
);
rrc_gNB_process_MeasurementReport
(
UE
,
ul_dcch_msg
->
message
.
choice
.
c1
->
choice
.
measurementReport
);
break
;
case
NR_UL_DCCH_MessageType__c1_PR_ulInformationTransfer
:
...
...
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