fixeria has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/14591 )

Change subject: osmo-bts-trx/trx_if.c: use osmo_loadXXbe() for TDMA FN and 
ToA256
......................................................................

osmo-bts-trx/trx_if.c: use osmo_loadXXbe() for TDMA FN and ToA256

Change-Id: Iec0d86f9be7243578ddc1ab322fc313cb5ac5d0b
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 2805260..0becdd5 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -611,9 +611,9 @@
                return -EINVAL;
        }
        tn = buf[0];
-       fn = (buf[1] << 24) | (buf[2] << 16) | (buf[3] << 8) | buf[4];
+       fn =  osmo_load32be(buf + 1);
        rssi = -(int8_t)buf[5];
-       toa256 = ((int16_t)(buf[6] << 8) | buf[7]);
+       toa256 = (int16_t) osmo_load16be(buf + 6);

        /* copy and convert bits {254..0} to sbits {-127..127} */
        for (i = 0; i < burst_len; i++) {

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/14591
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Iec0d86f9be7243578ddc1ab322fc313cb5ac5d0b
Gerrit-Change-Number: 14591
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to