fix issue when cell search doesn't set rx frequency because phy init takes too long

See commit f3c04949b7 for reference and a more
detailed description.
This commit is contained in:
Andre Puschmann 2018-03-15 09:59:39 +01:00
parent d66a455479
commit 25ccd29646
1 changed files with 2 additions and 4 deletions

View File

@ -280,10 +280,8 @@ void phch_recv::cell_search_inc()
rrc->earfcn_end();
} else {
Info("SYNC: Cell Search idx %d/%d\n", cur_earfcn_index, earfcn.size());
if (current_earfcn != earfcn[cur_earfcn_index]) {
current_earfcn = earfcn[cur_earfcn_index];
set_frequency();
}
current_earfcn = earfcn[cur_earfcn_index];
set_frequency();
phy_state = CELL_SEARCH;
}
}