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
This commit is contained in:
Guido Casati
2025-01-30 15:21:39 +01:00
parent 97521d21e5
commit 918fcd2b6d
@@ -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);