gNB: consider also the min_mcs when computing the DL MCS if only one round is used

This commit is contained in:
Thomas Schlichter
2025-09-09 11:17:43 +02:00
parent a9a9dfe297
commit 9346b50eb3
@@ -683,7 +683,8 @@ static void pf_dl(module_id_t module_id,
const int max_mcs_table = current_BWP->mcsTableIdx == 1 ? 27 : 28;
const int max_mcs = min(sched_ctrl->dl_max_mcs, max_mcs_table);
if (bo->harq_round_max == 1) {
sched_pdsch->mcs = min(bo->max_mcs, max_mcs);
int new_mcs = min(bo->max_mcs, max_mcs);
sched_pdsch->mcs = max(bo->min_mcs, new_mcs);
sched_ctrl->dl_bler_stats.mcs = sched_pdsch->mcs;
} else
sched_pdsch->mcs = get_mcs_from_bler(bo, stats, &sched_ctrl->dl_bler_stats, max_mcs, frame);