mirror of https://gerrit.osmocom.org/pysim
wavemobile-sim: write mnc-length field ine EF.AD
The length field in wavemobile sim cards is not set, so that the field stays at its initial value, which is 0xFF. Lets write the correct mnc length here. Change-Id: Ieda0ce864bf3e8c7b92f062eaa3a5482c98507e2 Related: OS#3850
This commit is contained in:
parent
45daa925bd
commit
6e507a7786
|
@ -896,6 +896,12 @@ class WavemobileSim(Card):
|
|||
if sw != '9000':
|
||||
print("Programming OPLMNwAcT failed with code %s"%sw)
|
||||
|
||||
# EF.AD
|
||||
if p.get('mcc') and p.get('mnc'):
|
||||
sw = self.update_ad(p['mnc'])
|
||||
if sw != '9000':
|
||||
print("Programming AD failed with code %s"%sw)
|
||||
|
||||
return None
|
||||
|
||||
def erase(self):
|
||||
|
|
Loading…
Reference in New Issue