<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/10001">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon: fix tail bits at the front of Access burst<br><br>Currently Access Burst generated by trxcon<br>has 8 zero bits at the beginning. According to<br>the 3GPP 05.02 specification (Chapter 5.2.7<br>Access burst) custom 8-bit extended tail bits<br>sequence should be used:<br>(BN0, BN1, BN2 ... BN7) = (0,0,1,1,1,0,1,0)<br><br>After this fix trxcon sets correct 8-bit<br>sequence at the front of Access burst.<br><br>Change-Id: I1f624e783de6c585d2e292965c9e5810b0a4f27d<br>---<br>M src/host/trxcon/sched_lchan_rach.c<br>1 file changed, 10 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/trxcon/sched_lchan_rach.c b/src/host/trxcon/sched_lchan_rach.c</span><br><span>index 2a09a37..3f6e2e1 100644</span><br><span>--- a/src/host/trxcon/sched_lchan_rach.c</span><br><span>+++ b/src/host/trxcon/sched_lchan_rach.c</span><br><span>@@ -42,6 +42,15 @@</span><br><span> #include "l1ctl.h"</span><br><span> </span><br><span> /**</span><br><span style="color: hsl(120, 100%, 40%);">+ * 8-bit RACH extended tail bits</span><br><span style="color: hsl(120, 100%, 40%);">+ * GSM 05.02 Chapter 5.2.7 Access burst (AB)</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+static ubit_t rach_ext_tail_bits[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+      0, 0, 1, 1, 1, 0, 1, 0,</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/**</span><br><span>  * 41-bit RACH synchronization sequence</span><br><span>  * GSM 05.02 Chapter 5.2.7 Access burst (AB)</span><br><span>  */</span><br><span>@@ -79,7 +88,7 @@</span><br><span>     }</span><br><span> </span><br><span>        /* Compose RACH burst */</span><br><span style="color: hsl(0, 100%, 40%);">-        memset(burst, 0, 8); /* TB */</span><br><span style="color: hsl(120, 100%, 40%);">+ memcpy(burst, rach_ext_tail_bits, 8); /* TB */</span><br><span>       memcpy(burst + 8, rach_synch_seq, 41); /* sync seq */</span><br><span>        memcpy(burst + 49, payload, 36); /* payload */</span><br><span>       memset(burst + 85, 0, 63); /* TB + GP */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10001">change 10001</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/10001"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I1f624e783de6c585d2e292965c9e5810b0a4f27d </div>
<div style="display:none"> Gerrit-Change-Number: 10001 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Piotr Krysik <ptrkrysik@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>