From 9181a69a554058ce6b38e7db14adb32e41557957 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 31 Jan 2023 16:32:28 +0100 Subject: [PATCH] gsm_r: EF_IC: Network String Table Index is 16bit, not 8bit As per EIRENE GSM-R SIM-Card FFFIS, EF_IC conatains records of 1+2+2+2 bytes, the network string table index is 16bit and not 8bit as we implemented so far. Change-Id: I9e3d4a48b3cb6fb0ecf887b04c308e903a99f547 --- pySim/gsm_r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/gsm_r.py b/pySim/gsm_r.py index edb51935..78c9ad99 100644 --- a/pySim/gsm_r.py +++ b/pySim/gsm_r.py @@ -211,7 +211,7 @@ class EF_IC(LinFixedEF): self._construct = Struct('next_table_type'/NextTableType, 'id_of_next_table'/HexAdapter(Bytes(2)), 'ic_decision_value'/BcdAdapter(Bytes(2)), - 'network_string_table_index'/Int8ub) + 'network_string_table_index'/Int16ub) class EF_NW(LinFixedEF):