From 376e835e6516708727bd42943ec9806219e7c493 Mon Sep 17 00:00:00 2001 From: Piotr Gawlowicz Date: Sat, 25 Nov 2023 00:50:32 +0100 Subject: [PATCH] ue,phy: always reset HARQ buffer for RAR --- srsue/src/phy/nr/cc_worker.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srsue/src/phy/nr/cc_worker.cc b/srsue/src/phy/nr/cc_worker.cc index eda91f5d5..a44e34552 100644 --- a/srsue/src/phy/nr/cc_worker.cc +++ b/srsue/src/phy/nr/cc_worker.cc @@ -238,6 +238,11 @@ bool cc_worker::decode_pdsch_dl() mac_dl_grant.tti = dl_slot_cfg.idx; 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 if (not dl_action.tb.enabled) { // Force positive ACK