fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/18819 )
Change subject: osmo-bts-trx: use osmo_store32be() in trx_if_send_burst() ...................................................................... osmo-bts-trx: use osmo_store32be() in trx_if_send_burst() Change-Id: I5000fe61b29d796b9229f921bffcb392b1c6d189 --- M src/osmo-bts-trx/trx_if.c 1 file changed, 1 insertion(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/19/18819/1 diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 61f57b9..ccbcd2f 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -1136,10 +1136,7 @@ } buf[0] = ((hdr_ver & 0x0f) << 4) | tn; - buf[1] = (fn >> 24) & 0xff; - buf[2] = (fn >> 16) & 0xff; - buf[3] = (fn >> 8) & 0xff; - buf[4] = (fn >> 0) & 0xff; + osmo_store32be(fn, buf + 1); buf[5] = pwr; /* copy ubits {0,1} */ -- To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/18819 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-Change-Id: I5000fe61b29d796b9229f921bffcb392b1c6d189 Gerrit-Change-Number: 18819 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange