aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-10-08 15:46:42 +0200
committerHarald Welte <laforge@osmocom.org>2021-10-14 16:16:23 +0200
commit9edbdb93f7f1e37232fb38e2e465baea4ffcfaf2 (patch)
tree2fce2945079dd900d2d6c54661a34eb3ea535788
parentf235954ebb6c7cf51d5d0ab99df1814b719d4f4a (diff)
cat: Fix SMS/ENVELOPE related IE tag definitions
-rw-r--r--pySim/cat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pySim/cat.py b/pySim/cat.py
index fd99c36..b8756e2 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):