From ebe97221da870620f345643c7628afe3d106d68c Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 19 Jun 2019 00:07:46 +0200 Subject: [PATCH] Do not check periodic-BSR during retx-BSR expiration --- srsue/src/stack/mac/proc_bsr.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/srsue/src/stack/mac/proc_bsr.cc b/srsue/src/stack/mac/proc_bsr.cc index 0d33f9216..4b438a736 100644 --- a/srsue/src/stack/mac/proc_bsr.cc +++ b/srsue/src/stack/mac/proc_bsr.cc @@ -107,13 +107,12 @@ void bsr_proc::timer_expired(uint32_t timer_id) { // retxBSR-Timer } else if (timer_id == timer_retx_id) { // Enable reTx of SR only if periodic timer is not infinity - if (bsr_cfg.periodic_timer >= 0) { - // Triger Regular BSR if UE has available data for transmission on any channel - if (check_any_channel()) { - set_trigger(REGULAR); - Debug("BSR: Triggering BSR reTX\n"); - sr_is_sent = false; - } + Debug("BSR: Timer BSR reTX expired, periodic=%d, channel=%d\n", bsr_cfg.periodic_timer, check_any_channel()); + // Triger Regular BSR if UE has available data for transmission on any channel + if (check_any_channel()) { + set_trigger(REGULAR); + Debug("BSR: Triggering BSR reTX\n"); + sr_is_sent = false; } } pthread_mutex_unlock(&mutex);