Skip to content

Commit 289a26f

Browse files
committed
sched: do not allocate remaining RBs if the PUSCH grant is for a pending SR
1 parent 78e0cd2 commit 289a26f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scheduler/ue_scheduling/ue_cell_grid_allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ alloc_result ue_cell_grid_allocator::allocate_ul_grant(const ue_pusch_grant& gra
691691
if (not is_retx) {
692692
// [Implementation-defined] Check whether max. UL grants per slot is reached if PUSCH for current UE succeeds. If
693693
// so, allocate remaining RBs to the current UE only if it's a new Tx.
694-
if (pusch_pdu_rem_space == 1) {
694+
if (pusch_pdu_rem_space == 1 and not u.has_pending_sr()) {
695695
mcs_prbs.n_prbs = rb_helper::find_empty_interval_of_length(used_crbs, used_crbs.size(), 0).length();
696696
}
697697
// Due to the pre-allocated UCI bits, MCS 0 and PRB 1 would not leave any space for the payload on the TBS, as

0 commit comments

Comments
 (0)