Reset UL after IDLEling PHY

This commit is contained in:
Ismael Gomez 2018-02-25 13:08:36 +01:00
parent d2560225bd
commit df67735a99
2 changed files with 12 additions and 2 deletions

View File

@ -391,13 +391,22 @@ bool phch_recv::cell_handover(srslte_cell_t cell)
bool ret = false;
this->cell = cell;
Info("Cell HO: Stopping sync with current cell\n");
worker_com->reset_ul();
phy_state = IDLE_RX;
cnt = 0;
while(!is_in_idle_rx && cnt<20) {
usleep(1000);
cnt++;
}
cnt = 0;
while(!is_in_idle_rx && cnt<20) {
usleep(1000);
cnt++;
}
for(uint32_t i=0;i<workers_pool->get_nof_workers();i++) {
((phch_worker*) workers_pool->get_worker(i))->reset();
}
worker_com->reset();
worker_com->reset_ul();
if (is_in_idle_rx) {
Info("Cell HO: Reconfiguring cell\n");
if (set_cell()) {

View File

@ -1128,7 +1128,8 @@ bool rrc::ho_prepare() {
pdcp->reestablish();
rlc->reestablish();
mac->reset();
phy->reset();
// PHY is reset inside cell_handover() function
mac->set_ho_rnti(mob_reconf.mob_ctrl_info.new_ue_id, mob_reconf.mob_ctrl_info.target_pci);
apply_rr_config_common_dl(&mob_reconf.mob_ctrl_info.rr_cnfg_common);