bugfix, sched: ensure max_coderate is respected in scheduler

This commit is contained in:
Francisco 2021-05-25 17:52:32 +01:00 committed by Ismael Gomez
parent a8cccd7a10
commit 329cf02cd0
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ uint32_t get_aggr_level(uint32_t nof_bits,
uint32_t l = min_aggr_lvl;
for (; l <= l_max; ++l) {
coderate = srsran_pdcch_coderate(nof_bits, l);
if (factor * coderate > max_coderate) {
if (factor * coderate <= max_coderate) {
break;
}
}