From 857f110492b54c8934ea38aa5b2cea786e6dde79 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 20 Jul 2022 07:44:25 +0200 Subject: [PATCH] EF.AD: Avoid NotImplementedErrror regarding network names Even while we don't yet have a proper decoder, let's at least represent the network name as hex-string Change-Id: I4ed626699d1e4e484d4ffd04349676dadff626a0 --- pySim/ts_51_011.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index 0927c9f2..7e7020b4 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -878,11 +878,13 @@ class EF_InvScan(TransparentEF): class EF_PNN(LinFixedEF): class FullNameForNetwork(BER_TLV_IE, tag=0x43): # TS 24.008 10.5.3.5a - pass + # TODO: proper decode + _construct = HexAdapter(GreedyBytes) class ShortNameForNetwork(BER_TLV_IE, tag=0x45): # TS 24.008 10.5.3.5a - pass + # TODO: proper decode + _construct = HexAdapter(GreedyBytes) class NetworkNameCollection(TLV_IE_Collection, nested=[FullNameForNetwork, ShortNameForNetwork]): pass