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;