From d671e39c93982d318c318fe3c2db9ccb9bbea37d Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 28 Sep 2020 15:30:53 +0200 Subject: [PATCH] Fix SINR not correctly considering noise. Missed dBm conversion --- srsue/src/phy/phy_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/phy/phy_common.cc b/srsue/src/phy/phy_common.cc index e1c3c1bfb..6bffdb75d 100644 --- a/srsue/src/phy/phy_common.cc +++ b/srsue/src/phy/phy_common.cc @@ -702,7 +702,7 @@ void phy_common::update_measurements(uint32_t // Calculate SINR using CRS from neighbours if are detected float sinr_db = chest_res.snr_db; if (std::isnormal(avg_rsrp_neigh[cc_idx])) { - cur_noise /= pow(10, rx_gain_offset / 10); + cur_noise /= srslte_convert_dB_to_power(rx_gain_offset - 30); // Normalize the measured power ot the fraction of CRS pilots per PRB. Assume all neighbours have the same // number of ports and CP length