Fixed HO with new PRACH

This commit is contained in:
Ismael Gomez 2018-04-24 16:51:13 +02:00
parent 74d6028769
commit 5b7b176ac7
2 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ void phch_recv::set_time_adv_sec(float time_adv_sec)
{
// If transmitting earlier, transmit less samples to align time advance. If transmit later just delay next TX
if (time_adv_sec > this->time_adv_sec) {
next_offset = -floor(time_adv_sec*srslte_sampling_freq_hz(cell.nof_prb)+1);
next_offset = floor((this->time_adv_sec-time_adv_sec)*srslte_sampling_freq_hz(cell.nof_prb)+1);
}
this->next_time_adv_sec = time_adv_sec;
Info("Applying time_adv_sec=%.1f us, next_offset=%d\n", time_adv_sec*1e6, next_offset);

View File

@ -1308,7 +1308,7 @@ bool rrc::ho_prepare() {
pdcp->reestablish();
rlc->reestablish();
mac->reset();
// PHY is reset inside cell_handover() function
phy->reset();
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);