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
lizhongxiao
OpenXG-RAN
Commits
de9b4599
Commit
de9b4599
authored
Feb 15, 2024
by
Romain Beurdouche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(phy-test): disable CQI and RSRP errors when running in phy-test mode
parent
c599e172
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+3
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+6
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
de9b4599
...
...
@@ -166,7 +166,9 @@ uint16_t get_pm_index(const gNB_MAC_INST *nrmac,
uint8_t
get_mcs_from_cqi
(
int
mcs_table
,
int
cqi_table
,
int
cqi_idx
)
{
if
(
cqi_idx
<=
0
)
{
if
(
get_softmodem_params
()
->
phy_test
<=
0
)
{
LOG_E
(
NR_MAC
,
"invalid cqi_idx %d, default to MCS 9
\n
"
,
cqi_idx
);
}
return
9
;
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
de9b4599
...
...
@@ -536,7 +536,9 @@ static void tci_handling(NR_UE_info_t *UE, frame_t frame, slot_t slot)
int
rsrp_index
=
sched_ctrl
->
CSI_report
.
ssb_cri_report
.
RSRP
;
bool
valid
=
get_measured_rsrp
(
rsrp_index
,
&
strongest_ssb_rsrp
);
if
(
!
valid
)
{
if
(
get_softmodem_params
()
->
phy_test
<=
0
)
{
LOG_E
(
NR_MAC
,
"UE %04x: reported RSRP index %d invalid
\n
"
,
UE
->
rnti
,
rsrp_index
);
}
return
;
}
ssb_rsrp
[
idx
*
nb_of_csi_ssb_report
]
=
strongest_ssb_rsrp
;
...
...
@@ -739,7 +741,9 @@ static void evaluate_rsrp_report(NR_UE_info_t *UE,
int
rsrp_index
=
sched_ctrl
->
CSI_report
.
ssb_cri_report
.
RSRP
;
bool
valid
=
get_measured_rsrp
(
rsrp_index
,
&
strongest_ssb_rsrp
);
if
(
!
valid
)
{
if
(
get_softmodem_params
()
->
phy_test
<=
0
)
{
LOG_E
(
NR_MAC
,
"UE %04x: reported RSRP index %d invalid
\n
"
,
UE
->
rnti
,
rsrp_index
);
}
return
;
}
NR_mac_stats_t
*
stats
=
&
UE
->
mac_stats
;
...
...
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