From 899e4148d4b7a3580199ac19906a95ff7ec2732e Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 14 Apr 2022 22:46:52 +0200 Subject: [PATCH] ue,mac_nr: reset DL and UL HARQ when MAC is reset DL and UL harq entities where never reset when the UE was going into IDLE. As a result, the first transmissions where always using the old softbuffer without resetting it, resulting in wrong TB being decoded. In the case of the RAR, the UE decoded a wrong (in fact the old) TCRNTI and the RA procedure failed. --- srsue/src/stack/mac_nr/mac_nr.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srsue/src/stack/mac_nr/mac_nr.cc b/srsue/src/stack/mac_nr/mac_nr.cc index e01bf1371..c529e9062 100644 --- a/srsue/src/stack/mac_nr/mac_nr.cc +++ b/srsue/src/stack/mac_nr/mac_nr.cc @@ -103,6 +103,16 @@ void mac_nr::reset() proc_sr.reset(); proc_ra.reset(); mux.reset(); + for (const auto& cc : dl_harq) { + if (cc != nullptr) { + cc->reset(); + } + } + for (const auto& cc : ul_harq) { + if (cc != nullptr) { + cc->reset(); + } + } } void mac_nr::run_tti(const uint32_t tti)