From 95dafcb413f2423f97b129129bd6dea27a9451e4 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 29 Apr 2021 11:16:05 +0200 Subject: [PATCH] SRSUE: fix NR carrier PCI in metrics --- srsue/src/phy/nr/worker_pool.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srsue/src/phy/nr/worker_pool.cc b/srsue/src/phy/nr/worker_pool.cc index 115aff662..f4d66bc9f 100644 --- a/srsue/src/phy/nr/worker_pool.cc +++ b/srsue/src/phy/nr/worker_pool.cc @@ -130,6 +130,12 @@ bool worker_pool::set_config(const srsran::phy_cfg_nr_t& cfg) logger.info( "Setting new PHY configuration ARFCN=%d, PCI=%d", cfg.carrier.absolute_frequency_point_a, cfg.carrier.pci); + // Set carrier information + info_metrics_t info = {}; + info.pci = cfg.carrier.pci; + info.dl_earfcn = cfg.carrier.absolute_frequency_ssb; + phy_state.set_info_metrics(info); + // Best effort to convert NR carrier into LTE cell srsran_cell_t cell = {}; int ret = srsran_carrier_to_cell(&phy_state.cfg.carrier, &cell);