diff --git a/srsue/hdr/stack/rrc/rrc.h b/srsue/hdr/stack/rrc/rrc.h index b2be787e9..a84792ff5 100644 --- a/srsue/hdr/stack/rrc/rrc.h +++ b/srsue/hdr/stack/rrc/rrc.h @@ -130,7 +130,6 @@ class cell_t this->has_valid_sib13 = false; this->phy_cell = phy_cell; rsrp = rsrp_; - in_sync = true; bzero(&sib1, sizeof(sib1)); bzero(&sib2, sizeof(sib2)); bzero(&sib3, sizeof(sib3)); @@ -150,7 +149,6 @@ class cell_t if (!std::isnan(rsrp_)) { rsrp = rsrp_; } - in_sync = true; gettimeofday(&last_update, nullptr); } diff --git a/srsue/src/stack/rrc/rrc.cc b/srsue/src/stack/rrc/rrc.cc index 21124f65f..913b0f093 100644 --- a/srsue/src/stack/rrc/rrc.cc +++ b/srsue/src/stack/rrc/rrc.cc @@ -579,19 +579,9 @@ void rrc::clean_neighbours() } } -// Sort neighbour cells by decreasing order of RSRP and remove old cells from neighbor list +// Sort neighbour cells by decreasing order of RSRP void rrc::sort_neighbour_cells() { - // Remove out-of-sync cells - for (auto it = neighbour_cells.begin(); it != neighbour_cells.end();) { - if ((*it)->in_sync == false) { - rrc_log->info("Neighbour PCI=%d is out-of-sync. Deleting\n", (*it)->get_pci()); - it = neighbour_cells.erase(it); - } else { - ++it; - } - } - std::sort(std::begin(neighbour_cells), std::end(neighbour_cells), [](const unique_cell_t& a, const unique_cell_t& b) { return a->greater(b.get()); });