Added rrc has nr neighbour cells

This commit is contained in:
David Rupprecht 2020-12-07 16:46:02 +01:00 committed by Andre Puschmann
parent 0e4d77da76
commit 5df2fb1fa1
2 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

@ -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;