diff --git a/lib/src/phy/ch_estimation/chest_dl.c b/lib/src/phy/ch_estimation/chest_dl.c index b10ab2f24..be115354b 100644 --- a/lib/src/phy/ch_estimation/chest_dl.c +++ b/lib/src/phy/ch_estimation/chest_dl.c @@ -919,7 +919,7 @@ static float get_rsrp_neighbour_port(srsran_chest_dl_t* q, uint32_t port) static float get_rsrp(srsran_chest_dl_t* q) { float max = -1e9; - for (int i = 0; i < q->nof_rx_antennas; ++i) { + for (int i = 0; i < q->cell.nof_ports; ++i) { float v = get_rsrp_port(q, i); if (v > max) { max = v;