More clear equation to calculate number of PRACH subframes

This commit is contained in:
Xavier Arteaga 2021-10-11 15:36:34 +02:00 committed by Andre Puschmann
parent 4cea3d92bd
commit c7940f455c
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ cf_t* prach::generate(float cfo, uint32_t* nof_sf, float* target_power)
srsran_cfo_correct(&cfo_h, buffer[f_idx][preamble_idx], signal_buffer, cfo / srsran_symbol_sz(cell.nof_prb));
// pad guard symbols with zeros
uint32_t nsf = (len - 1) / SRSRAN_SF_LEN_PRB(cell.nof_prb) + 1;
uint32_t nsf = SRSRAN_CEIL(len, SRSRAN_SF_LEN_PRB(cell.nof_prb));
srsran_vec_cf_zero(&signal_buffer[len], (nsf * SRSRAN_SF_LEN_PRB(cell.nof_prb) - len));
*nof_sf = nsf;