From 3994407f46793efb3e09a7f1e3977b297e6fab39 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 13 Oct 2020 21:25:42 +0200 Subject: [PATCH] proc_bsr: fix BSR insertion in UL PDUs the BSR trigger wasn't reset after includinga regular or periodic BSR inside a PDU. This caused the muxing to include another BSR in the next UL grant. For very small grants, for example with 6 PRBs, this causes the UE to send way too many BSRs. --- srsue/src/stack/mac/proc_bsr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsue/src/stack/mac/proc_bsr.cc b/srsue/src/stack/mac/proc_bsr.cc index 341798845..c980db5ab 100644 --- a/srsue/src/stack/mac/proc_bsr.cc +++ b/srsue/src/stack/mac/proc_bsr.cc @@ -255,6 +255,8 @@ bool bsr_proc::generate_bsr(bsr_t* bsr, uint32_t pdu_space) timer_periodic.run(); Debug("BSR: Started periodicBSR-Timer\n"); } + // reset trigger to avoid another BSR in the next UL grant + triggered_bsr_type = NONE; } return send_bsr;