ue,phy: always reset HARQ buffer for RAR

master^2
Piotr Gawlowicz 1 year ago committed by Piotr
parent 184199ca05
commit 376e835e65

@ -238,6 +238,11 @@ bool cc_worker::decode_pdsch_dl()
mac_dl_grant.tti = dl_slot_cfg.idx; mac_dl_grant.tti = dl_slot_cfg.idx;
phy.stack->new_grant_dl(0, mac_dl_grant, &dl_action); phy.stack->new_grant_dl(0, mac_dl_grant, &dl_action);
// check if RA-RNTI, if true reset HARQ buffers
if (pdsch_cfg.grant.rnti_type == srsran_rnti_type_ra && dl_action.tb.softbuffer != nullptr) {
srsran_softbuffer_rx_reset(dl_action.tb.softbuffer);
}
// Abort if MAC says it doesn't need the TB // Abort if MAC says it doesn't need the TB
if (not dl_action.tb.enabled) { if (not dl_action.tb.enabled) {
// Force positive ACK // Force positive ACK

Loading…
Cancel
Save