<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/16192">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">simtrace2-remsim: Implement/Fix the 'skip_atr' option<br><br>Change-Id: Id8206738635af0dd55836bbbcbfbe7381c375e97<br>---<br>M host/simtrace2-remsim.c<br>1 file changed, 8 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/92/16192/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/host/simtrace2-remsim.c b/host/simtrace2-remsim.c</span><br><span>index 73a7272..101d425 100644</span><br><span>--- a/host/simtrace2-remsim.c</span><br><span>+++ b/host/simtrace2-remsim.c</span><br><span>@@ -746,12 +746,14 @@</span><br><span>                 /* select remote (forwarded) SIM */</span><br><span>          st_modem_sim_select_remote(ci->slot);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-            /* set the ATR */</span><br><span style="color: hsl(0, 100%, 40%);">-               uint8_t real_atr[] = { 0x3B, 0x9F, 0x96, 0x80, 0x1F, 0xC7, 0x80, 0x31,</span><br><span style="color: hsl(0, 100%, 40%);">-                                       0xA0, 0x73, 0xBE, 0x21, 0x13, 0x67, 0x43, 0x20,</span><br><span style="color: hsl(0, 100%, 40%);">-                                         0x07, 0x18, 0x00, 0x00, 0x01, 0xA5 };</span><br><span style="color: hsl(0, 100%, 40%);">-              atr_update_csum(real_atr, sizeof(real_atr));</span><br><span style="color: hsl(0, 100%, 40%);">-            cardem_request_set_atr(ci, real_atr, sizeof(real_atr));</span><br><span style="color: hsl(120, 100%, 40%);">+               if (!skip_atr) {</span><br><span style="color: hsl(120, 100%, 40%);">+                      /* set the ATR */</span><br><span style="color: hsl(120, 100%, 40%);">+                     uint8_t real_atr[] = {  0x3B, 0x9F, 0x96, 0x80, 0x1F, 0xC7, 0x80, 0x31,</span><br><span style="color: hsl(120, 100%, 40%);">+                                               0xA0, 0x73, 0xBE, 0x21, 0x13, 0x67, 0x43, 0x20,</span><br><span style="color: hsl(120, 100%, 40%);">+                                               0x07, 0x18, 0x00, 0x00, 0x01, 0xA5 };</span><br><span style="color: hsl(120, 100%, 40%);">+                 atr_update_csum(real_atr, sizeof(real_atr));</span><br><span style="color: hsl(120, 100%, 40%);">+                  cardem_request_set_atr(ci, real_atr, sizeof(real_atr));</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span> </span><br><span>                /* select remote (forwarded) SIM */</span><br><span>          st_modem_reset_pulse(ci->slot, 300);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/16192">change 16192</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/c/simtrace2/+/16192"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id8206738635af0dd55836bbbcbfbe7381c375e97 </div>
<div style="display:none"> Gerrit-Change-Number: 16192 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>