From ff42fa099181a7ff3871ee2bd844047b45880645 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 16 Apr 2018 13:37:42 +0200 Subject: [PATCH] stop time alignment timer before setting new one (if any) this caused an issue where time-alignment timer was set in sib2 but then set to infinity for the UE during dedicated MAC configuration --- srsue/src/mac/mac.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srsue/src/mac/mac.cc b/srsue/src/mac/mac.cc index 14f895257..03b57bc8f 100644 --- a/srsue/src/mac/mac.cc +++ b/srsue/src/mac/mac.cc @@ -320,6 +320,11 @@ void mac::harq_recv(uint32_t tti, bool ack, mac_interface_phy::tb_action_ul_t* a void mac::setup_timers() { + // stop currently running time alignment timer + if (timers.get(timer_alignment)->is_running()) { + timers.get(timer_alignment)->stop(); + } + int value = liblte_rrc_time_alignment_timer_num[config.main.time_alignment_timer]; if (value > 0) { timers.get(timer_alignment)->set(this, value);