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
This commit is contained in:
Andre Puschmann 2021-10-15 17:33:11 +02:00
parent d5acf73c46
commit 1db683053f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {