diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-19 20:29:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-07-19 20:29:56 +0200 |
commit | 08fce19cfce84432fbf8293318486a96437a3427 (patch) | |
tree | d1decc91327735969fb2efe8605db0e51c254595 /src/osmo-bts-sysmo | |
parent | 0390d54ade12f62759a79447b6f954e8e37ba9d2 (diff) |
Allocate correct message size for L1 primitives
This is required for using firmware v2.4
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r-- | src/osmo-bts-sysmo/l1_fwd_main.c | 2 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/l1_transp_fwd.c | 2 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/l1_transp_hw.c | 2 |
3 files changed, 3 insertions, 3 deletions
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; diff --git a/src/osmo-bts-sysmo/l1_transp_fwd.c b/src/osmo-bts-sysmo/l1_transp_fwd.c index 4d2b4863..143c8592 100644 --- a/src/osmo-bts-sysmo/l1_transp_fwd.c +++ b/src/osmo-bts-sysmo/l1_transp_fwd.c @@ -64,7 +64,7 @@ static const uint16_t fwd_udp_ports[] = { static int fwd_read_cb(struct osmo_fd *ofd) { - struct msgb *msg = msgb_alloc_headroom(2048, 127, "udp_rx"); + struct msgb *msg = msgb_alloc_headroom(sizeof(SuperFemto_Prim_t) + 128, 128, "udp_rx"); struct femtol1_hdl *fl1h = ofd->data; int rc; diff --git a/src/osmo-bts-sysmo/l1_transp_hw.c b/src/osmo-bts-sysmo/l1_transp_hw.c index a8f97bfe..19035d06 100644 --- a/src/osmo-bts-sysmo/l1_transp_hw.c +++ b/src/osmo-bts-sysmo/l1_transp_hw.c @@ -86,7 +86,7 @@ static const char *wr_devnames[] = { static int l1if_fd_cb(struct osmo_fd *ofd, unsigned int what) { //struct msgb *msg = l1p_msgb_alloc(); - struct msgb *msg = msgb_alloc_headroom(2048, 128, "1l_fd"); + struct msgb *msg = msgb_alloc_headroom(sizeof(SuperFemto_Prim_t) + 128, 128, "1l_fd"); struct femtol1_hdl *fl1h = ofd->data; int rc; |