<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/24662">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/trx_if: send NOPE indications if there is no burst<br><br>In a typical setup operating on the real radio interface, it's<br>the duty of the transceiver (e.g. osmo-trx) to send NOPE.ind to<br>the L1 implementation (e.g. osmo-bts-trx).  However, in a<br>virtual environment for ttcn3-bts-test we use a fake transceiver,<br>which due to its simplicity cannot send NOPE indications itself.<br><br>The lack of queues and buffering does not allow us to implement<br>NOPE indications in fake_trx.py, so the easiest approach is to<br>generate them from trxcon.  Send TRXD PDUs without the burst bits,<br>and fake_trx.py will tranform them info NOPE.ind for us.<br><br>Change-Id: I1c7f1315b8ef44f651efd6a22fb5b854f65c0946<br>Related: SYS#5313, OS#1569<br>---<br>M src/host/trxcon/trx_if.c<br>1 file changed, 4 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/62/24662/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 c4561ce..8dbbd12 100644</span><br><span>--- a/src/host/trxcon/trx_if.c</span><br><span>+++ b/src/host/trxcon/trx_if.c</span><br><span>@@ -635,9 +635,6 @@</span><br><span>    uint8_t buf[TRXD_BUF_SIZE];</span><br><span>  size_t length;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      if (br->burst_len == 0)</span><br><span style="color: hsl(0, 100%, 40%);">-              return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    /**</span><br><span>   * We must be sure that we have clock,</span><br><span>        * and we have sent all control data</span><br><span>@@ -662,8 +659,10 @@</span><br><span>  length = 6;</span><br><span> </span><br><span>      /* Copy ubits {0,1} */</span><br><span style="color: hsl(0, 100%, 40%);">-  memcpy(buf + 6, br->burst, br->burst_len);</span><br><span style="color: hsl(0, 100%, 40%);">-        length += br->burst_len;</span><br><span style="color: hsl(120, 100%, 40%);">+   if (br->burst_len != 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+          memcpy(buf + 6, br->burst, br->burst_len);</span><br><span style="color: hsl(120, 100%, 40%);">+              length += br->burst_len;</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span> </span><br><span>        /* Send data to transceiver */</span><br><span>       send(trx->trx_ofd_data.fd, buf, length, 0);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/24662">change 24662</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/+/24662"/><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: I1c7f1315b8ef44f651efd6a22fb5b854f65c0946 </div>
<div style="display:none"> Gerrit-Change-Number: 24662 </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>