From 997552ee45beaec1b19981f697ee548ce5121e6c Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Mon, 24 Aug 2020 17:02:57 +0100 Subject: [PATCH] stop t304 when handover is successful --- srsue/src/stack/rrc/rrc_procedures.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srsue/src/stack/rrc/rrc_procedures.cc b/srsue/src/stack/rrc/rrc_procedures.cc index fccd307fb..e85081782 100644 --- a/srsue/src/stack/rrc/rrc_procedures.cc +++ b/srsue/src/stack/rrc/rrc_procedures.cc @@ -1388,6 +1388,7 @@ srslte::proc_outcome_t rrc::ho_proc::init(const asn1::rrc::rrc_conn_recfg_s& rrc // Section 5.3.5.4 rrc_ptr->t310.stop(); rrc_ptr->t304.set(mob_ctrl_info->t304.to_number(), [this](uint32_t tid) { rrc_ptr->timer_expired(tid); }); + rrc_ptr->t304.run(); state = launch_phy_cell_select; return proc_outcome_t::yield; @@ -1530,7 +1531,9 @@ srslte::proc_outcome_t rrc::ho_proc::react(ra_completed_ev ev) void rrc::ho_proc::then(const srslte::proc_state_t& result) { Info("Finished HO Preparation %s\n", result.is_success() ? "successfully" : "with error"); - if (rrc_ptr->t304.is_running()) { + if (result.is_success()) { + rrc_ptr->t304.stop(); + } else if (rrc_ptr->t304.is_running()) { Info("Waiting for t304 to expire to start the Reestablishment procedure\n"); } }