sysmo-usim-sjs1: update EF.AD with correct MNC length
At the moment EF.AD, which contains the length of the MNC is not updated. For two digit MNC (the usual case) this is fine since the length is set to 2 by default. However, when one wants to set an MNC with 3 digit length the file must be updated, otherwise the third digit of the MNC is recognized as part of the MSIN. Change-Id: I827092b2c7f7952f54b2d9f8dbda419a0dbfaf65 Related: OS#3850
This commit is contained in:
@@ -176,5 +176,12 @@ if __name__ == '__main__':
|
||||
except Exception as e:
|
||||
print "MSISDN: Can't read file -- " + str(e)
|
||||
|
||||
# EF.AD
|
||||
(res, sw) = scc.read_binary(['3f00', '7f20', '6fad'])
|
||||
if sw == '9000':
|
||||
print("AD: %s" % (res,))
|
||||
else:
|
||||
print("AD: Can't read, response code = %s" % (sw,))
|
||||
|
||||
# Done for this card and maybe for everything ?
|
||||
print "Done !\n"
|
||||
|
||||
Reference in New Issue
Block a user