Fix for 1480071.

master
faluco 5 years ago committed by Andre Puschmann
parent 0ba9164ae2
commit d9529a3a8f

@ -134,8 +134,8 @@ uint32_t srslte_prach_f_ra_tdd(uint32_t config_idx,
uint32_t n_rb_ul) uint32_t n_rb_ul)
{ {
if (config_idx >= 64 && tdd_ul_dl_config >= 7) { if (config_idx >= 64 || tdd_ul_dl_config >= 7) {
ERROR("PRACH: Invalid parmeters config_idx=%d, tdd_ul_config=%d\n", config_idx, tdd_ul_dl_config); ERROR("PRACH: Invalid parameters config_idx=%d, tdd_ul_config=%d\n", config_idx, tdd_ul_dl_config);
return 0; return 0;
} }
uint32_t f_ra = prach_tdd_loc_table[config_idx][tdd_ul_dl_config].elems[prach_idx].f; uint32_t f_ra = prach_tdd_loc_table[config_idx][tdd_ul_dl_config].elems[prach_idx].f;

Loading…
Cancel
Save