From c9cf72b33fd974e6260848d5735de16d1fed2c84 Mon Sep 17 00:00:00 2001
From: francescomani <email@francescomani.it>
Date: Mon, 4 Mar 2024 12:01:05 +0100
Subject: [PATCH] RRCSetup fallback after re-establishment not implemented ->
 go back to IDLE

---
 openair2/RRC/NR_UE/rrc_UE.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/openair2/RRC/NR_UE/rrc_UE.c b/openair2/RRC/NR_UE/rrc_UE.c
index 11b9f0102eb..50ca63e178c 100644
--- a/openair2/RRC/NR_UE/rrc_UE.c
+++ b/openair2/RRC/NR_UE/rrc_UE.c
@@ -904,6 +904,11 @@ static void nr_rrc_process_rrcsetup(NR_UE_RRC_INST_t *rrc,
   // if the RRCSetup is received in response to an RRCReestablishmentRequest
   // or RRCResumeRequest or RRCResumeRequest1
   // TODO none of the procedures implemented yet
+  if (rrc->ra_trigger == RRC_CONNECTION_REESTABLISHMENT) {
+    LOG_E(NR_RRC, "Handling of RRCSetup in response of RRCReestablishment not implemented yet. Going back to IDLE.\n");
+    nr_rrc_going_to_IDLE(rrc, OTHER, NULL);
+    return;
+  }
 
   // perform the cell group configuration procedure in accordance with the received masterCellGroup
   nr_rrc_ue_process_masterCellGroup(rrc,
-- 
GitLab