Make programming OPC optional
Change-Id: Ic600c325557918cb7d5b1fb179c01936a078c96c
This commit is contained in:
committed by
Harald Welte
parent
35a96edb0d
commit
67acdbc817
@@ -582,9 +582,9 @@ class SysmoUSIMSJS1(Card):
|
|||||||
data, sw = self._scc.update_binary('00FF', p['ki'])
|
data, sw = self._scc.update_binary('00FF', p['ki'])
|
||||||
|
|
||||||
# set OPc in proprietary file
|
# set OPc in proprietary file
|
||||||
content = "01" + p['opc']
|
if 'opc' in p:
|
||||||
data, sw = self._scc.update_binary('00F7', content)
|
content = "01" + p['opc']
|
||||||
|
data, sw = self._scc.update_binary('00F7', content)
|
||||||
|
|
||||||
# write EF.IMSI
|
# write EF.IMSI
|
||||||
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))
|
||||||
|
|||||||
Reference in New Issue
Block a user