From 737c5ae71287fefc0a4a1c8076e9fc001bd3fb42 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 2 Jun 2023 14:17:39 -0600 Subject: [PATCH] RSRP fix for TX-port --- lib/src/phy/ch_estimation/chest_dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;