From 65dbac0bd3557b3a9c81090659ef30d394173b5e Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 23 Feb 2022 22:22:09 +0100 Subject: [PATCH] srsenb,metrics: use epre for snr computation instead of rsrp --- lib/src/phy/ch_estimation/chest_ul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/phy/ch_estimation/chest_ul.c b/lib/src/phy/ch_estimation/chest_ul.c index 4dcd47702..da744089f 100644 --- a/lib/src/phy/ch_estimation/chest_ul.c +++ b/lib/src/phy/ch_estimation/chest_ul.c @@ -358,7 +358,7 @@ static void chest_ul_estimate(srsran_chest_ul_t* q, // Calculate SNR if (isnormal(res->noise_estimate)) { - res->snr = rsrp_avg / res->noise_estimate; + res->snr = epre / res->noise_estimate; } else { res->snr = NAN; } @@ -568,7 +568,7 @@ int srsran_chest_ul_estimate_pucch(srsran_chest_ul_t* q, // Estimate SINR if (isnormal(res->noise_estimate)) { - res->snr = res->rsrp / res->noise_estimate; + res->snr = res->epre / res->noise_estimate; res->snr_db = srsran_convert_power_to_dB(res->snr); } else { res->snr = NAN;