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
master
Andre Puschmann 3 years ago
parent d5acf73c46
commit 1db683053f

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

Loading…
Cancel
Save