Fixes N_pucch_cs allocation to avoid collision with SR

This commit is contained in:
Ismael Gomez 2020-11-06 11:38:59 +01:00 committed by Andre Puschmann
parent 13f1d65b24
commit 524453a6af
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ bool cell_ctxt_dedicated_list::alloc_pucch_cs_resources()
const uint32_t max_cce = srslte_max_cce(cfg.cell.nof_prb);
// Loop through all available resources
for (uint32_t i = 0; i < pucch_res_common::N_PUCCH_MAX_RES; i++) {
if (!pucch_res->n_pucch_cs_used[i] && !(i >= N_pucch_1 && i < N_pucch_1 + max_cce)) {
if (!pucch_res->n_pucch_cs_used[i] && (i <= N_pucch_1 && i != sr_res.sr_N_pucch)) {
// Allocate resource
pucch_res->n_pucch_cs_used[i] = true;
n_pucch_cs_idx = i;