From 66eb6f20f19e03cd3c2787440668298cc50d2429 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 17 Jun 2021 16:49:24 +0200 Subject: [PATCH] Fix non-contention HO missing the T-CRNTI --- srsue/src/stack/mac/proc_ra.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srsue/src/stack/mac/proc_ra.cc b/srsue/src/stack/mac/proc_ra.cc index ad150fd32..c38f8ac39 100644 --- a/srsue/src/stack/mac/proc_ra.cc +++ b/srsue/src/stack/mac/proc_ra.cc @@ -220,6 +220,7 @@ void ra_proc::initialization() preambleTransmissionCounter = 1; mux_unit->msg3_flush(); backoff_param_ms = 0; + transmitted_crnti = 0; resource_selection(); } @@ -405,10 +406,12 @@ void ra_proc::tb_decoded_ok(const uint8_t cc_idx, const uint32_t tti) rar_pdu_msg.get()->get_ta_cmd(), rar_pdu_msg.get()->get_temp_crnti()); + // Save Temp-CRNTI before generating the reply + rntis->temp_rnti = rar_pdu_msg.get()->get_temp_crnti(); + // Perform actions when preamble was selected by UE MAC if (preambleIndex <= 0) { mux_unit->msg3_prepare(); - rntis->temp_rnti = rar_pdu_msg.get()->get_temp_crnti(); // If this is the first successfully received RAR within this procedure, Msg3 is empty if (mux_unit->msg3_is_empty()) {