From 36a39b25a13dda3ee70525d59e9d882c5121bdc9 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Fri, 7 Feb 2025 07:46:04 +0100 Subject: [PATCH] Set 5GMM Mode to IDLE when receiving NR_NAS_CONN_RELEASE_IND > In N1 mode, upon indication from lower layers that the access stratum connection has been released, the UE shall enter 5GMM-IDLE mode and consider the N1 NAS signalling connection released (3GPP TS 24.501) --- openair3/NAS/NR_UE/nr_nas_msg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openair3/NAS/NR_UE/nr_nas_msg.c b/openair3/NAS/NR_UE/nr_nas_msg.c index 8a51111cf3..f78caf39f9 100644 --- a/openair3/NAS/NR_UE/nr_nas_msg.c +++ b/openair3/NAS/NR_UE/nr_nas_msg.c @@ -1565,8 +1565,12 @@ void *nas_nrue(void *args_p) break; } - case NR_NAS_CONN_RELEASE_IND: - LOG_I(NAS, "[UE %ld] Received %s: cause %u\n", nas->UE_id, ITTI_MSG_NAME(msg_p), NR_NAS_CONN_RELEASE_IND(msg_p).cause); + case NR_NAS_CONN_RELEASE_IND: { + LOG_I(NAS, "[UE %ld] Received %s: cause %s\n", + nas->UE_id, ITTI_MSG_NAME (msg_p), nr_release_cause_desc[NR_NAS_CONN_RELEASE_IND (msg_p).cause]); + /* In N1 mode, upon indication from lower layers that the access stratum connection has been released, + the UE shall enter 5GMM-IDLE mode and consider the N1 NAS signalling connection released (3GPP TS 24.501) */ + nas->fiveGMM_mode = FGS_IDLE; // TODO handle connection release if (nas->termination_procedure) { /* the following is not clean, but probably necessary: we need to give @@ -1577,7 +1581,7 @@ void *nas_nrue(void *args_p) itti_wait_tasks_unblock(); /* will unblock ITTI to stop nr-uesoftmodem */ } break; - + } case NAS_UPLINK_DATA_CNF: LOG_I(NAS, "[UE %ld] Received %s: UEid %u, errCode %u\n",