From 918fcd2b6dc37f316857e522d6266df758a82181 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Wed, 26 Jun 2024 18:52:26 +0200 Subject: [PATCH] Bugfix: 6 bits AMF set ID in decode_guti_5gs_mobile_identity * the last 6 bits of the GUTI represent the AMF Pointer * the AMF Set ID is 10 bits long * the Registration Accept message received from the network contains the GUTI which, when properly decoded, will be used in any possible following Registration Request --- openair3/NAS/NR_UE/5GS/5GMM/IES/FGSMobileIdentity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair3/NAS/NR_UE/5GS/5GMM/IES/FGSMobileIdentity.c b/openair3/NAS/NR_UE/5GS/5GMM/IES/FGSMobileIdentity.c index 7e1489ac81..ddd6ba6bc9 100644 --- a/openair3/NAS/NR_UE/5GS/5GMM/IES/FGSMobileIdentity.c +++ b/openair3/NAS/NR_UE/5GS/5GMM/IES/FGSMobileIdentity.c @@ -215,7 +215,7 @@ static int decode_guti_5gs_mobile_identity(Guti5GSMobileIdentity_t *guti, const guti->amfregionid = *(buffer + decoded); decoded++; IES_DECODE_U16(buffer, decoded, temp); - guti->amfsetid = temp >> 3; + guti->amfsetid = (temp >> 6) & 0x3FF; guti->amfpointer = temp & 0x3f; IES_DECODE_U32(buffer, decoded, guti->tmsi);