From 08fce19cfce84432fbf8293318486a96437a3427 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 19 Jul 2012 20:29:56 +0200 Subject: Allocate correct message size for L1 primitives This is required for using firmware v2.4 --- src/osmo-bts-sysmo/l1_fwd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osmo-bts-sysmo/l1_fwd_main.c') diff --git a/src/osmo-bts-sysmo/l1_fwd_main.c b/src/osmo-bts-sysmo/l1_fwd_main.c index 852d5189..cda732d1 100644 --- a/src/osmo-bts-sysmo/l1_fwd_main.c +++ b/src/osmo-bts-sysmo/l1_fwd_main.c @@ -89,7 +89,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(2048, 128, "udp_rx"); + struct msgb *msg = msgb_alloc_headroom(sizeof(SuperFemto_Prim_t) + 128, 128, "udp_rx"); struct l1fwd_hdl *l1fh = ofd->data; struct femtol1_hdl *fl1h = l1fh->fl1h; int rc; -- cgit v1.2.3