From 54755b57aa4ed467cb271f75ea6723e149f66e34 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Thu, 27 Jun 2024 11:23:32 +0200 Subject: [PATCH] Add NAS Registration Request with type Mobility Registration Updating * ref TS 24.501 --- openair3/NAS/NR_UE/nr_nas_msg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openair3/NAS/NR_UE/nr_nas_msg.c b/openair3/NAS/NR_UE/nr_nas_msg.c index 6166213fa9..57b3f1447b 100644 --- a/openair3/NAS/NR_UE/nr_nas_msg.c +++ b/openair3/NAS/NR_UE/nr_nas_msg.c @@ -469,7 +469,11 @@ void generateRegistrationRequest(as_nas_info_t *initialNasMsg, nr_ue_nas_t *nas) // Plain 5GMM msg registration_request_msg *mm_msg = &plain.mm_msg.registration_request; - mm_msg->fgsregistrationtype = INITIAL_REGISTRATION; + if (nas->fiveGMM_state == FGS_DEREGISTERED) { + mm_msg->fgsregistrationtype = INITIAL_REGISTRATION; + } else { + mm_msg->fgsregistrationtype = MOBILITY_REGISTRATION_UPDATING; + } mm_msg->naskeysetidentifier.naskeysetidentifier = 1; size += 1; if (nas->guti) {