From 5df2fb1fa151476264d737167eb14745beacf244 Mon Sep 17 00:00:00 2001 From: David Rupprecht Date: Mon, 7 Dec 2020 16:46:02 +0100 Subject: [PATCH] Added rrc has nr neighbour cells --- srsue/hdr/stack/rrc/rrc.h | 4 ++++ srsue/src/stack/rrc/rrc.cc | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/srsue/hdr/stack/rrc/rrc.h b/srsue/hdr/stack/rrc/rrc.h index 10cbec553..7e71ab4f4 100644 --- a/srsue/hdr/stack/rrc/rrc.h +++ b/srsue/hdr/stack/rrc/rrc.h @@ -149,6 +149,10 @@ protected: bool is_serving_cell(uint32_t earfcn, uint32_t pci) const; int start_cell_select(); +#ifdef HAVE_5GNR + bool has_neighbour_cell_nr(uint32_t earfcn, uint32_t pci) const; +#endif + private: typedef struct { enum { PCCH, RLF, RA_COMPLETE, STOP } command; diff --git a/srsue/src/stack/rrc/rrc.cc b/srsue/src/stack/rrc/rrc.cc index 379a36324..574683ca9 100644 --- a/srsue/src/stack/rrc/rrc.cc +++ b/srsue/src/stack/rrc/rrc.cc @@ -570,6 +570,13 @@ bool rrc::has_neighbour_cell(uint32_t earfcn, uint32_t pci) const return meas_cells.has_neighbour_cell(earfcn, pci); } +#ifdef HAVE_5GNR +bool rrc::has_neighbour_cell_nr(uint32_t earfcn, uint32_t pci) const +{ + return meas_cells_nr.has_neighbour_cell(earfcn, pci); +} +#endif + bool rrc::is_serving_cell(uint32_t earfcn, uint32_t pci) const { return meas_cells.serving_cell().phy_cell.earfcn == earfcn and meas_cells.serving_cell().phy_cell.pci == pci;