Commit bf659525 authored by Robert Schmidt's avatar Robert Schmidt

limit log2_maxh \in [1, 14]

parent ef4dfade
...@@ -1562,9 +1562,10 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB, ...@@ -1562,9 +1562,10 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB,
else else
pusch_vars->log2_maxh = (log2_approx(avgs) >> 1) + 1 + log2_approx(frame_parms->nb_antennas_rx >> 1); pusch_vars->log2_maxh = (log2_approx(avgs) >> 1) + 1 + log2_approx(frame_parms->nb_antennas_rx >> 1);
if (pusch_vars->log2_maxh < 0) if (pusch_vars->log2_maxh < 1)
pusch_vars->log2_maxh = 0; pusch_vars->log2_maxh = 1;
else if (pusch_vars->log2_maxh > 14)
pusch_vars->log2_maxh = 14;
stop_meas(&gNB->rx_pusch_init_stats); stop_meas(&gNB->rx_pusch_init_stats);
start_meas(&gNB->rx_pusch_symbol_processing_stats); start_meas(&gNB->rx_pusch_symbol_processing_stats);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment