path: root/src/osmo-bts-sysmo/l1_fwd_main.c
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-07-26 20:10:39 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-07-26 20:18:53 +0200
commitb86bf060d334b33628e192218915526a526ebe46 (patch)
tree12f1a8e0514399fce89e89932d51b7a9ad97221b /src/osmo-bts-sysmo/l1_fwd_main.c
parentfde8e6dc0c1b493f70c2ffdb5182afe8d426bd9e (diff)
sysmobts: Support older firmware on the RevB hardware
For the firmware used on RevB the GsmL1_Prim_t was bigger than the femtobts control structure. Solve it by introducing a macro that will select the biggest size and use this macro. This is a follow up fix for 08fce19cfce84432fbf8293318486a96437a3427.
Diffstat (limited to 'src/osmo-bts-sysmo/l1_fwd_main.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/l1_fwd_main.c b/src/osmo-bts-sysmo/l1_fwd_main.c
index e2b0d5ec..527a559e 100644
--- a/src/osmo-bts-sysmo/l1_fwd_main.c
+++ b/src/osmo-bts-sysmo/l1_fwd_main.c
@@ -93,7 +93,7 @@ int l1if_handle_sysprim(struct femtol1_hdl *fl1h, struct msgb *msg)
/* data has arrived on the udp socket */
static int udp_read_cb(struct osmo_fd *ofd)
- struct msgb *msg = msgb_alloc_headroom(sizeof(SuperFemto_Prim_t) + 128, 128, "udp_rx");
+ struct msgb *msg = msgb_alloc_headroom(SYSMOBTS_PRIM_SIZE, 128, "udp_rx");
struct l1fwd_hdl *l1fh = ofd->data;
struct femtol1_hdl *fl1h = l1fh->fl1h;
int rc;