From 04f6634b4908434e8cc87e4e72e4a5bbacf6abc5 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 7 Mar 2018 15:02:07 +0100 Subject: [PATCH] fix condition check in cell HO --- srsue/src/phy/phch_recv.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index 4d4dbb78e..112cd03b8 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -308,8 +308,7 @@ void phch_recv::cell_search_start() { bool phch_recv::cell_handover(srslte_cell_t cell) { - - if (srslte_cell_isvalid(&cell)) { + if (!srslte_cell_isvalid(&cell)) { log_h->error("Received HO command to invalid cell. ID=%d, PRB=%d, ports=%d\n", cell.id, cell.nof_prb, cell.nof_ports); return false; }