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
This commit is contained in:
Andre Puschmann 2018-04-16 13:37:42 +02:00
parent d7d6bd1a78
commit ff42fa0991
1 changed files with 5 additions and 0 deletions

View File

@ -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);