From 1db683053f73a217a4582420456807190f05d123 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 15 Oct 2021 17:33:11 +0200 Subject: [PATCH] enb,mac: fix buffer setting when receiving SBSR the MAX_LCG is 7 so the loop needs to be inclusive to set all 8 LCGs to 0 --- srsenb/src/stack/mac/nr/ue_nr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/nr/ue_nr.cc b/srsenb/src/stack/mac/nr/ue_nr.cc index 6c0bcbbfc..57cc02dbb 100644 --- a/srsenb/src/stack/mac/nr/ue_nr.cc +++ b/srsenb/src/stack/mac/nr/ue_nr.cc @@ -107,7 +107,7 @@ int ue_nr::process_pdu(srsran::unique_byte_buffer_t pdu) uint32_t buffer_size_bytes = buff_size_field_to_bytes(sbsr.buffer_size, srsran::SHORT_BSR); // Assume all LCGs are 0 if reported SBSR is 0 if (buffer_size_bytes == 0) { - for (uint32_t j = 0; j < SCHED_NR_MAX_LC_GROUP; j++) { + for (uint32_t j = 0; j <= SCHED_NR_MAX_LC_GROUP; j++) { sched->ul_bsr(rnti, j, 0); } } else {