From 9edbdb93f7f1e37232fb38e2e465baea4ffcfaf2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 8 Oct 2021 15:46:42 +0200 Subject: [PATCH] cat: Fix SMS/ENVELOPE related IE tag definitions Change-Id: I7ed4d78479b6ff75cde20cb5b0bd1672035806ff --- pySim/cat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pySim/cat.py b/pySim/cat.py index fd99c36a..b8756e2f 100644 --- a/pySim/cat.py +++ b/pySim/cat.py @@ -52,7 +52,7 @@ class CommandDetails(COMPR_TLV_IE, tag=0x01): 'command_qualifier'/Int8ub) # TS 102 223 Section 8.7 -class DeviceIdentities(COMPR_TLV_IE, tag=0x02): +class DeviceIdentities(COMPR_TLV_IE, tag=0x82): DEV_IDS = bidict({ 0x01: 'keypad', 0x02: 'display', @@ -126,8 +126,8 @@ class Result(COMPR_TLV_IE, tag=0x03): # TS 102 223 Section 8.13 + TS 31.111 Section 8.13 -class SMS_TPDU(COMPR_TLV_IE, tag=0x0B): - pass +class SMS_TPDU(COMPR_TLV_IE, tag=0x8B): + _construct = Struct('tpdu'/HexAdapter(GreedyBytes)) # TS 102 223 Section 8.15 class TextString(COMPR_TLV_IE, tag=0x0d):