<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/23972">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon: fix legacy length expectations for TRXDv0 Rx PDUs<br><br>158 is basically: 8 + 148 + 2, where the last two are padding bytes<br>sent by legacy TRXDv0 transceivers.  We don't need them, so do not<br>drop PDUs without these leggacy padding bytes.<br><br>Change-Id: I6c0734bc4669ccde2a93940c9cf50fdbbd67cb00<br>---<br>M src/host/trxcon/trx_if.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/osmocom-bb refs/changes/72/23972/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c</span><br><span>index e1ce588..716fd23 100644</span><br><span>--- a/src/host/trxcon/trx_if.c</span><br><span>+++ b/src/host/trxcon/trx_if.c</span><br><span>@@ -585,7 +585,7 @@</span><br><span>           return read_len;</span><br><span>     }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   if (read_len != 158) {</span><br><span style="color: hsl(120, 100%, 40%);">+        if (read_len < (8 + 148)) { /* TRXDv0 header + GMSK burst */</span><br><span>              LOGP(DTRXD, LOGL_ERROR, "Got data message with invalid "</span><br><span>                   "length '%zd'\n", read_len);</span><br><span>               return -EINVAL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/23972">change 23972</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/osmocom-bb/+/23972"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6c0734bc4669ccde2a93940c9cf50fdbbd67cb00 </div>
<div style="display:none"> Gerrit-Change-Number: 23972 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>