aboutsummaryrefslogtreecommitdiffstats
path: root/pySim/cards.py
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-04-01 16:33:48 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-01 16:33:48 +0200
commit6e507a77864c1700e80212dfb6a03768c6439a5d (patch)
treef254df0f1f2064afe44a7cdeeeed53373ba8569a /pySim/cards.py
parent45daa925bd950b6d1ebc791e9a0e8f7b70f64c1b (diff)
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
Diffstat (limited to 'pySim/cards.py')
-rw-r--r--pySim/cards.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pySim/cards.py b/pySim/cards.py
index d912a7a..a341b71 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -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):