Fix HO not setting serving cell

This commit is contained in:
Ismael Gomez 2018-03-08 16:35:37 -05:00
parent 5335f046ff
commit b85a220145
1 changed files with 3 additions and 5 deletions

View File

@ -617,11 +617,6 @@ void rrc::cell_camping(uint32_t earfcn, srslte_cell_t phy_cell, float rsrp) {
int cell_idx = -1; int cell_idx = -1;
bool found = true; bool found = true;
if (ho_syncing && phy_cell.id == ho_target_pci) {
ho_synced(ho_target_pci);
return;
}
pthread_mutex_lock(&mutex); pthread_mutex_lock(&mutex);
if (serving_cell->equals(earfcn, phy_cell.id)) { if (serving_cell->equals(earfcn, phy_cell.id)) {
@ -665,6 +660,9 @@ void rrc::cell_camping(uint32_t earfcn, srslte_cell_t phy_cell, float rsrp) {
found?"Updating":"Adding", found?"Updating":"Adding",
cell_idx>=0?"neighbour":"serving", earfcn, phy_cell.id, rsrp); cell_idx>=0?"neighbour":"serving", earfcn, phy_cell.id, rsrp);
if (ho_syncing && phy_cell.id == ho_target_pci) {
ho_synced(ho_target_pci);
}
} }