<p>dexter <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/13340">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved
  Daniel Willmann: Looks good to me, but someone else must approve

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cards: sysmo-usim-sjs1: add programming of EF.PLMNsel, EF.PLMNwAcT and EF.OPLMNwAcT<br><br>The files EF.PLMNsel, EF.PLMNwAcT and EF.OPLMNwAcT are currently not<br>programmed for sysmo-usim-sjs1, lets add them.<br><br>Change-Id: I0cac3041f1902383d98d6dc211cf31ae6e3a610b<br>Related: OS#3850<br>---<br>M pySim/cards.py<br>1 file changed, 20 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/cards.py b/pySim/cards.py</span><br><span>index 3a25040..1012cfd 100644</span><br><span>--- a/pySim/cards.py</span><br><span>+++ b/pySim/cards.py</span><br><span>@@ -536,7 +536,7 @@</span><br><span>    def __init__(self, ssc):</span><br><span>             super(SysmoUSIMSJS1, self).__init__(ssc)</span><br><span>             self._scc.cla_byte = "00"</span><br><span style="color: hsl(0, 100%, 40%);">-             self._scc.sel_ctrl = "000C"</span><br><span style="color: hsl(120, 100%, 40%);">+         self._scc.sel_ctrl = "0004" #request an FCP</span><br><span> </span><br><span>    @classmethod</span><br><span>         def autodetect(kls, scc):</span><br><span>@@ -575,6 +575,25 @@</span><br><span>             # write EF.IMSI</span><br><span>              data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+           # EF.PLMNsel</span><br><span style="color: hsl(120, 100%, 40%);">+                if p.get('mcc') and p.get('mnc'):</span><br><span style="color: hsl(120, 100%, 40%);">+                        sw = self.update_plmnsel(p['mcc'], p['mnc'])</span><br><span style="color: hsl(120, 100%, 40%);">+                        if sw != '9000':</span><br><span style="color: hsl(120, 100%, 40%);">+                               print("Programming PLMNsel failed with code %s"%sw)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                # EF.PLMNwAcT</span><br><span style="color: hsl(120, 100%, 40%);">+                if p.get('mcc') and p.get('mnc'):</span><br><span style="color: hsl(120, 100%, 40%);">+                     sw = self.update_plmn_act(p['mcc'], p['mnc'])</span><br><span style="color: hsl(120, 100%, 40%);">+                 if sw != '9000':</span><br><span style="color: hsl(120, 100%, 40%);">+                              print("Programming PLMNwAcT failed with code %s"%sw)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                # EF.OPLMNwAcT</span><br><span style="color: hsl(120, 100%, 40%);">+                if p.get('mcc') and p.get('mnc'):</span><br><span style="color: hsl(120, 100%, 40%);">+                   sw = self.update_oplmn_act(p['mcc'], p['mnc'])</span><br><span style="color: hsl(120, 100%, 40%);">+                        if sw != '9000':</span><br><span style="color: hsl(120, 100%, 40%);">+                              print("Programming OPLMNwAcT failed with code %s"%sw)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>          # EF.SMSP</span><br><span>            r = self._scc.select_file(['3f00', '7f10'])</span><br><span>          data, sw = self._scc.update_record('6f42', 1, lpad(p['smsp'], 104), force_len=True)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13340">change 13340</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13340"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I0cac3041f1902383d98d6dc211cf31ae6e3a610b </div>
<div style="display:none"> Gerrit-Change-Number: 13340 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Willmann <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: K√©vin Redon <kredon@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Max <suraev@alumni.ntnu.no> </div>