aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-04-29 17:20:18 +0200
committerlaforge <laforge@osmocom.org>2021-05-07 21:52:30 +0000
commitc957ce8adc4ecd5084cd8f7ed86b8c4e200c22f6 (patch)
treebb512dbfe48b266d2509d3be41119378a9e27ebb
parent90f7497d6d8d440e6c2066ffc1948f689b6ed6a8 (diff)
ts_51_011: fix encoder of EF_SPN:HEADmaster
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
-rw-r--r--pySim/ts_51_011.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index 4189e6e..dba0369 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):