Limit PUCCH ACK resources to the max CCE from the configured max_ctrl_symbols instead of from MAX_CFI

This commit is contained in:
Ismael Gomez 2021-09-20 10:34:42 +02:00
parent 1f6c950dae
commit 28b956d128
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ void sf_grid_t::init(const sched_cell_params_t& cell_params_)
pucch_mask.resize(cc_cfg->nof_prb());
pucch_nrb = (cc_cfg->cfg.nrb_pucch > 0) ? (uint32_t)cc_cfg->cfg.nrb_pucch : 0;
srsran_pucch_cfg_t pucch_cfg = cell_params_.pucch_cfg_common;
pucch_cfg.n_pucch = cc_cfg->nof_cce_table[SRSRAN_NOF_CFI - 1] - 1 + cc_cfg->cfg.n1pucch_an;
pucch_cfg.n_pucch =
cc_cfg->nof_cce_table[cell_params_.sched_cfg->max_nof_ctrl_symbols - 1] - 1 + cc_cfg->cfg.n1pucch_an;
pucch_nrb = std::max(pucch_nrb, srsran_pucch_m(&pucch_cfg, cc_cfg->cfg.cell.cp) / 2 + 1);
if (pucch_nrb > 0) {
pucch_mask.fill(0, pucch_nrb);