From c957ce8adc4ecd5084cd8f7ed86b8c4e200c22f6 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 29 Apr 2021 17:20:18 +0200 Subject: [PATCH] ts_51_011: fix encoder of EF_SPN: The encoder for EF_SPN is passing the 'spn' parameter (which is a list) directly to enc_spn without taking it apart first. Change-Id: I0a405793c8909d4279e634b93dcb76e5cb2963f3 Related: OS#4963 --- pySim/ts_51_011.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index 4189e6eb..dba03693 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -522,7 +522,8 @@ class EF_SPN(TransparentEF): def _decode_hex(self, raw_hex): return {'spn': dec_spn(raw_hex)} def _encode_hex(self, abstract): - return enc_spn(abstract['spn']) + spn = abstract['spn'] + return enc_spn(spn[0], spn[1], spn[2]) # TS 51.011 Section 10.3.13 class EF_CBMI(TransRecEF):