<p>Kévin Redon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11362">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">remsim: fix TPDU response size transmission<br><br>the TDPU response data size can be up to 256.<br>this length cannot be stored in a uint8_t, which would cause the<br>length to become 0, no data being send, and the reader reset the<br>card because of misbehaviour of the card (i.e. no/malformed<br>response leading to the timeout of the waiting time).<br><br>Change-Id: Iae7671085aaa3115a02d82530dd7a0e7e2d4155e<br>---<br>M host/simtrace2-remsim.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/62/11362/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 d0bbb8c..73a7272 100644</span><br><span>--- a/host/simtrace2-remsim.c</span><br><span>+++ b/host/simtrace2-remsim.c</span><br><span>@@ -218,7 +218,7 @@</span><br><span> </span><br><span> /*! \brief Request the SIMtrace2 to transmit a Procedure Byte, then Tx */</span><br><span> static int cardem_request_pb_and_tx(struct cardem_inst *ci, uint8_t pb,</span><br><span style="color: hsl(0, 100%, 40%);">-                                  const uint8_t *data, uint8_t data_len_in)</span><br><span style="color: hsl(120, 100%, 40%);">+                             const uint8_t *data, uint16_t data_len_in)</span><br><span> {</span><br><span>  struct msgb *msg = st_msgb_alloc();</span><br><span>  struct cardemu_usb_msg_tx_data *txd;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11362">change 11362</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/11362"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Iae7671085aaa3115a02d82530dd7a0e7e2d4155e </div>
<div style="display:none"> Gerrit-Change-Number: 11362 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kévin Redon <kredon@sysmocom.de> </div>