projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bca27b2
)
fix framenumber byte-ordering
author
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 20:17:24 +0000
(21:17 +0100)
committer
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 20:17:24 +0000
(21:17 +0100)
src/target/firmware/layer1/l23_api.c
patch
|
blob
|
history
diff --git
a/src/target/firmware/layer1/l23_api.c
b/src/target/firmware/layer1/l23_api.c
index
5f2cc28
..
a6c6dbe
100644
(file)
--- a/
src/target/firmware/layer1/l23_api.c
+++ b/
src/target/firmware/layer1/l23_api.c
@@
-24,7
+24,9
@@
#include <stdint.h>
#include <stdio.h>
+
#include <debug.h>
+#include <byteorder.h>
#include <osmocore/msgb.h>
#include <comm/sercomm.h>
@@
-94,7
+96,7
@@
struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr,
dl = (struct l1ctl_info_dl *) msgb_put(msg, sizeof(*dl));
dl->msg_type = msg_type;
- dl->frame_nr =
fn
;
+ dl->frame_nr =
htonl(fn)
;
dl->snr = snr;
dl->band_arfcn = arfcn;