From 57a3150778b7e98618c63c134646ae56ce18f2da Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 16 Jul 2017 21:03:47 +0200 Subject: [PATCH] GSM_TypeS: Add Mobile Identity type 'NONE' --- sysinfo/GSM_Types.ttcn | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sysinfo/GSM_Types.ttcn b/sysinfo/GSM_Types.ttcn index 924788cbd..71c74f73f 100644 --- a/sysinfo/GSM_Types.ttcn +++ b/sysinfo/GSM_Types.ttcn @@ -175,19 +175,27 @@ module GSM_Types { } with { variant "" }; type record MobileIdentityTMSI { - MobileIdentityType mi_type (MI_TYPE_TMSI), - boolean odd (false), BIT4 pad ('1111'B), + boolean odd (false), + MobileIdentityType mi_type (MI_TYPE_TMSI), GsmTmsi tmsi } with { variant "" }; + type record MobileIdentityNone { + BIT4 pad ('1111'B), + boolean odd (false), + MobileIdentityType mi_type (MI_TYPE_NONE) + } with { variant "" }; + type union MobileIdentity { MobileIdentityBCD bcd, - MobileIdentityTMSI tmsi + MobileIdentityTMSI tmsi, + MobileIdentityNone unused } with { variant "TAG(bcd, mi_type = MI_TYPE_IMSI; bcd, mi_type = MI_TYPE_IMEI; bcd, mi_type = MI_TYPE_IMEISV; - tmsi, mi_type = MI_TYPE_TMSI)" }; + tmsi, mi_type = MI_TYPE_TMSI; + unused, mi_type = MI_TYPE_NONE)" }; type record MobileIdentityLV { uint8_t len,