mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user