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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
ce3a64a9
Commit
ce3a64a9
authored
Feb 06, 2024
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB: limit MCS according to configuration file also in case of AMC or no-harq
parent
b8042178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+4
-3
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
ce3a64a9
...
@@ -676,12 +676,13 @@ static void pf_dl(module_id_t module_id,
...
@@ -676,12 +676,13 @@ static void pf_dl(module_id_t module_id,
/* Calculate coeff */
/* Calculate coeff */
const
NR_bler_options_t
*
bo
=
&
mac
->
dl_bler
;
const
NR_bler_options_t
*
bo
=
&
mac
->
dl_bler
;
const
int
max_mcs_table
=
current_BWP
->
mcsTableIdx
==
1
?
27
:
28
;
const
int
max_mcs_table
=
current_BWP
->
mcsTableIdx
==
1
?
27
:
28
;
const
int
max_mcs
=
min
(
sched_ctrl
->
dl_max_mcs
,
max_mcs_table
);
int
max_mcs
=
min
(
sched_ctrl
->
dl_max_mcs
,
max_mcs_table
);
if
(
amc_flag
)
{
if
(
amc_flag
)
{
float
SINR
=
get_measured_sinr
(
sched_ctrl
->
CSI_report
.
ssb_cri_report
.
SINR
);
float
SINR
=
get_measured_sinr
(
sched_ctrl
->
CSI_report
.
ssb_cri_report
.
SINR
);
sched_pdsch
->
mcs
=
min
(
get_MCS_from_SINR
(
SINR
+
sinr_offset_dl
),
max_mcs
);
max_mcs
=
min
(
get_MCS_from_SINR
(
SINR
+
sinr_offset_dl
),
max_mcs
);
sched_pdsch
->
mcs
=
min
(
max_mcs
,
bo
->
max_mcs
);
}
else
if
(
bo
->
harq_round_max
==
1
)
}
else
if
(
bo
->
harq_round_max
==
1
)
sched_pdsch
->
mcs
=
m
ax_mcs
;
sched_pdsch
->
mcs
=
m
in
(
max_mcs
,
bo
->
max_mcs
)
;
else
else
sched_pdsch
->
mcs
=
get_mcs_from_bler
(
bo
,
stats
,
&
sched_ctrl
->
dl_bler_stats
,
max_mcs
,
frame
);
sched_pdsch
->
mcs
=
get_mcs_from_bler
(
bo
,
stats
,
&
sched_ctrl
->
dl_bler_stats
,
max_mcs
,
frame
);
sched_pdsch
->
nrOfLayers
=
get_dl_nrOfLayers
(
sched_ctrl
,
current_BWP
->
dci_format
);
sched_pdsch
->
nrOfLayers
=
get_dl_nrOfLayers
(
sched_ctrl
,
current_BWP
->
dci_format
);
...
...
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