We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ffce3 commit c892ae5Copy full SHA for c892ae5
srsenb/src/stack/rrc/rrc_cell_cfg.cc
@@ -292,6 +292,7 @@ bool cell_ctxt_dedicated_list::alloc_sr_resources(uint32_t period)
292
293
uint32_t c = SRSLTE_CP_ISNORM(cfg.cell.cp) ? 3 : 2;
294
uint32_t delta_pucch_shift = cell->cell_common.sib2.rr_cfg_common.pucch_cfg_common.delta_pucch_shift.to_number();
295
+ delta_pucch_shift = SRSLTE_MAX(1, delta_pucch_shift); // prevent div by zero
296
uint32_t max_users = 12 * c / delta_pucch_shift;
297
298
// Find freq-time resources with least number of users
0 commit comments