<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14591">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bts-trx/trx_if.c: use osmo_loadXXbe() for TDMA FN and ToA256<br><br>Change-Id: Iec0d86f9be7243578ddc1ab322fc313cb5ac5d0b<br>---<br>M src/osmo-bts-trx/trx_if.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/91/14591/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c</span><br><span>index 2805260..fde4d50 100644</span><br><span>--- a/src/osmo-bts-trx/trx_if.c</span><br><span>+++ b/src/osmo-bts-trx/trx_if.c</span><br><span>@@ -39,6 +39,9 @@</span><br><span> #include <osmocom/core/talloc.h></span><br><span> #include <osmocom/core/bits.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/core/bit16gen.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/core/bit32gen.h></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #include <osmo-bts/phy_link.h></span><br><span> #include <osmo-bts/logging.h></span><br><span> #include <osmo-bts/bts.h></span><br><span>@@ -611,9 +614,9 @@</span><br><span>             return -EINVAL;</span><br><span>      }</span><br><span>    tn = buf[0];</span><br><span style="color: hsl(0, 100%, 40%);">-    fn = (buf[1] << 24) | (buf[2] << 16) | (buf[3] << 8) | buf[4];</span><br><span style="color: hsl(120, 100%, 40%);">+      fn =  osmo_load32be(buf + 1);</span><br><span>        rssi = -(int8_t)buf[5];</span><br><span style="color: hsl(0, 100%, 40%);">- toa256 = ((int16_t)(buf[6] << 8) | buf[7]);</span><br><span style="color: hsl(120, 100%, 40%);">+     toa256 = (int16_t) osmo_load16be(buf + 6);</span><br><span> </span><br><span>       /* copy and convert bits {254..0} to sbits {-127..127} */</span><br><span>    for (i = 0; i < burst_len; i++) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14591">change 14591</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/osmo-bts/+/14591"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iec0d86f9be7243578ddc1ab322fc313cb5ac5d0b </div>
<div style="display:none"> Gerrit-Change-Number: 14591 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>