From 6e0abd30ddba45d8463efe7b11b750fc851bcaf8 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 1 Oct 2020 18:49:56 +0200 Subject: [PATCH] ue,phy_common: include Pcell PCI in cell measurements this allows easier plotting in RRC when PHY cell measurements already include the PCI --- srsue/src/phy/phy_common.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srsue/src/phy/phy_common.cc b/srsue/src/phy/phy_common.cc index 6bffdb75d..06289c45c 100644 --- a/srsue/src/phy/phy_common.cc +++ b/srsue/src/phy/phy_common.cc @@ -748,8 +748,11 @@ void phy_common::update_measurements(uint32_t meas.rsrp = avg_rsrp_dbm[cc_idx]; meas.rsrq = avg_rsrq_db[cc_idx]; meas.cfo_hz = avg_cfo_hz[cc_idx]; - // Save EARFCN and PCI for secondary cells, primary cell has earfcn=0 - if (cc_idx > 0) { + + // Save PCI and EARFCN (if available) + if (cc_idx == 0) { + meas.pci = cell.id; + } else { meas.earfcn = scell_cfg[cc_idx].earfcn; meas.pci = scell_cfg[cc_idx].pci; }