Skip to content

Commit b15eefb

Browse files
committed
srsenb,nr: fix calculation of allocated bytes on pending UL HARQ preventing UL rate to achieve maximum.
1 parent 633959f commit b15eefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srsgnb/src/stack/mac/sched_nr_ue.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void ue::new_slot(slot_point pdcch_slot)
228228
// Discount UL HARQ pending bytes to BSR
229229
for (uint32_t pid = 0; pid < cc->harq_ent.nof_ul_harqs(); ++pid) {
230230
if (not cc->harq_ent.ul_harq(pid).empty()) {
231-
common_ctxt.pending_ul_bytes -= std::min(cc->harq_ent.ul_harq(pid).tbs(), common_ctxt.pending_ul_bytes);
231+
common_ctxt.pending_ul_bytes -= std::min(cc->harq_ent.ul_harq(pid).tbs() / 8, common_ctxt.pending_ul_bytes);
232232
if (last_sr_slot.valid() and cc->harq_ent.ul_harq(pid).harq_slot_tx() > last_sr_slot) {
233233
last_sr_slot.clear();
234234
}

0 commit comments

Comments
 (0)