mirror of https://gerrit.osmocom.org/pysim
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:
parent
90f7497d6d
commit
c957ce8adc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue