aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-25 15:33:46 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-25 15:45:02 +0100
commit3a5afff022a746c05952d4315d6eee88450458aa (patch)
treecc0c34f4303fd063d4b1208feb4966c0f818936f
parent1459e45005baa69874f05fb63556ef8022c1ca37 (diff)
ts_31_102: Further decode LAI in EF_LOCI
-rw-r--r--pySim/ts_31_102.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index 3298534..231d387 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -712,8 +712,8 @@ class EF_ECC(LinFixedEF):
class EF_LOCI(TransparentEF):
def __init__(self, fid='6f7e', sfid=0x0b, name='EF.LOCI', desc='Location information', size={11, 11}):
super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size)
- self._construct = Struct('tmsi'/HexAdapter(Bytes(4)), 'lai'/HexAdapter(Bytes(5)), 'rfu'/Int8ub,
- 'lu_status'/Int8ub)
+ Lai = Struct('mcc_mnc'/BcdAdapter(Bytes(3)), 'lac'/HexAdapter(Bytes(2)))
+ self._construct = Struct('tmsi'/HexAdapter(Bytes(4)), 'lai'/Lai, 'rfu'/Int8ub, 'lu_status'/Int8ub)
# TS 31.102 Section 4.2.18
class EF_AD(TransparentEF):
class OP_MODE(enum.IntEnum):