diff options
author | Harald Welte <laforge@osmocom.org> | 2022-02-25 15:36:44 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-02-25 15:45:09 +0100 |
commit | a037762b04df8b630c3752400c5a06ea96ac36ff (patch) | |
tree | 85209cf1bf482ad0bcc43b9343f74b8ad255bc63 | |
parent | 3a5afff022a746c05952d4315d6eee88450458aa (diff) |
ts_31_102: Further decode TAI in EF.OPL5G
The TAI is not just an opaque bytestring but it consists of 3 fields.
Change-Id: Ie5a5ce74713deb0e151218ae553d3f3d96cef17d
-rw-r--r-- | pySim/ts_31_102.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py index 231d387..fec81bf 100644 --- a/pySim/ts_31_102.py +++ b/pySim/ts_31_102.py @@ -1033,7 +1033,8 @@ class EF_UAC_AIC(TransparentEF): class EF_OPL5G(LinFixedEF): def __init__(self, fid='6f08', sfid=0x08, name='EF.OPL5G', desc='5GS Operator PLMN List', **kwargs): super().__init__(fid=fid, sfid=sfid, name=name, desc=desc, rec_len={10, None}, **kwargs) - self._construct = Struct('tai'/Bytes(9), 'pnn_record_id'/Int8ub) + Tai = Struct('mcc_mnc'/BcdAdapter(Bytes(3)), 'tac_min'/Bytes(3), 'tac_max'/Bytes(3)) + self._construct = Struct('tai'/Tai, 'pnn_record_id'/Int8ub) # TS 31.102 Section 4.4.11.10 class EF_SUPI_NAI(TransparentEF): |