mirror of https://github.com/PentHertz/srsLTE.git
Fixes N_pucch_cs allocation to avoid collision with SR
This commit is contained in:
parent
13f1d65b24
commit
524453a6af
|
@ -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);
|
const uint32_t max_cce = srslte_max_cce(cfg.cell.nof_prb);
|
||||||
// Loop through all available resources
|
// Loop through all available resources
|
||||||
for (uint32_t i = 0; i < pucch_res_common::N_PUCCH_MAX_RES; i++) {
|
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
|
// Allocate resource
|
||||||
pucch_res->n_pucch_cs_used[i] = true;
|
pucch_res->n_pucch_cs_used[i] = true;
|
||||||
n_pucch_cs_idx = i;
|
n_pucch_cs_idx = i;
|
||||||
|
|
Loading…
Reference in New Issue