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:
da4d3f1
)
layer1: allocate large enough msgb's for the payload we send over L1CTL
author
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 15:57:09 +0000
(16:57 +0100)
committer
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 15:57:09 +0000
(16:57 +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
292ae7e
..
54695a2
100644
(file)
--- a/
src/target/firmware/layer1/l23_api.c
+++ b/
src/target/firmware/layer1/l23_api.c
@@
-39,8
+39,8
@@
#include <l1a_l23_interface.h>
/* the size we will allocate struct msgb* for HDLC */
-#define L3_MSG_SIZE (sizeof(struct l1ctl_data_ind) + 4)
#define L3_MSG_HEAD 4
+#define L3_MSG_SIZE (sizeof(struct l1ctl_info_dl)+sizeof(struct l1ctl_data_ind) + L3_MSG_HEAD)
void l1_queue_for_l2(struct msgb *msg)
{