layer1: allocate large enough msgb's for the payload we send over L1CTL
authorHarald Welte <laforge@gnumonks.org>
Sun, 7 Mar 2010 15:57:09 +0000 (16:57 +0100)
committerHarald Welte <laforge@gnumonks.org>
Sun, 7 Mar 2010 15:57:09 +0000 (16:57 +0100)
src/target/firmware/layer1/l23_api.c

index 292ae7e..54695a2 100644 (file)
@@ -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)
 {