From 5772f61aaf78485e1b06941597f66a0adaa6e9ae Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 15 Mar 2018 11:31:37 +0100 Subject: [PATCH] Revert "fix issue when cell search doesn't set rx frequency because phy init takes too long" This reverts commit 25ccd296461ed8ce32044bbda200f8d02e3ff2bd. --- srsue/src/phy/phch_recv.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index 4563c1476..38dd5b561 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -280,8 +280,10 @@ void phch_recv::cell_search_inc() rrc->earfcn_end(); } else { Info("SYNC: Cell Search idx %d/%d\n", cur_earfcn_index, earfcn.size()); - current_earfcn = earfcn[cur_earfcn_index]; - set_frequency(); + if (current_earfcn != earfcn[cur_earfcn_index]) { + current_earfcn = earfcn[cur_earfcn_index]; + set_frequency(); + } phy_state = CELL_SEARCH; } }