From c98ef8a79db83903dc98197e2d968511affe4609 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 7 Apr 2021 10:51:22 +0200 Subject: [PATCH] ts_102_221.py: fix fixup_fcp_proprietary_tlv_map() The function fixup_fcp_proprietary_tlv_map() addes propritary TLV tags in the range of d0 to ff to the TLV map. However, the spec defines this range as b7 and b8 of the first tag byte set to 1. This results in a range from c0 to ff. See also ETSI TS 102 221, section 11.1.1.4.6.0 Change-Id: I8359527c9ff303b257b181b87dc440f27735ece9 Related: OS#4963 --- pySim/ts_102_221.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/ts_102_221.py b/pySim/ts_102_221.py index b8fce1b4..88a36a1e 100644 --- a/pySim/ts_102_221.py +++ b/pySim/ts_102_221.py @@ -129,7 +129,7 @@ FCP_prorietary_interpreter_map = { def fixup_fcp_proprietary_tlv_map(tlv_map): if 'D0' in tlv_map: return - for i in range(0xd0, 0xff): + for i in range(0xc0, 0xff): i_hex = i2h([i]).upper() tlv_map[i_hex] = 'proprietary_' + i_hex