gnb,dl: fix amplitude scaling

use PDSCH struct to get number of PRBs to compute scaling factor.
then PDCCH struct is only filled if it's encoded.
This commit is contained in:
Andre Puschmann 2021-09-22 14:04:44 +02:00
parent faf9d2dbd8
commit 430694c72f
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void srsran_gnb_dl_gen_signal(srsran_gnb_dl_t* q)
return;
}
float norm_factor = gnb_dl_get_norm_factor(q->pdcch.carrier.nof_prb);
float norm_factor = gnb_dl_get_norm_factor(q->pdsch.carrier.nof_prb);
for (uint32_t i = 0; i < q->nof_tx_antennas; i++) {
srsran_ofdm_tx_sf(&q->fft[i]);