Review at  https://gerrit.osmocom.org/6251

firmware/l23_api.c: increase the L3_MSG_SIZE

This one defines the fixed amount of memory we will allocate for
each new l23 message in the firmware. Since the BURST INDICATION
message was defined, data_ind is no longer the biggest message.

Change-Id: I237c6898cb7bbccb891e23ebab08498768a01574
---
M src/target/firmware/layer1/l23_api.c
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/51/6251/1

diff --git a/src/target/firmware/layer1/l23_api.c 
b/src/target/firmware/layer1/l23_api.c
index 311ca6a..dcb4da0 100644
--- a/src/target/firmware/layer1/l23_api.c
+++ b/src/target/firmware/layer1/l23_api.c
@@ -52,7 +52,12 @@
 /* the size we will allocate struct msgb* for HDLC */
 #define L3_MSG_HEAD 4
 #define L3_MSG_DATA 200
-#define L3_MSG_SIZE (L3_MSG_HEAD + sizeof(struct l1ctl_hdr) + L3_MSG_DATA)
+#define L3_MSG_SIZE ( \
+       L3_MSG_HEAD \
+       + sizeof(struct l1ctl_hdr) \
+       + sizeof(struct l1ctl_info_dl) \
+       + sizeof(struct l1ctl_burst_ind) \
+       + L3_MSG_DATA)
 
 void (*l1a_l23_tx_cb)(struct msgb *msg) = NULL;
 

-- 
To view, visit https://gerrit.osmocom.org/6251
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I237c6898cb7bbccb891e23ebab08498768a01574
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilira...@gmail.com>
Gerrit-Reviewer: tnt <t...@246tnt.com>

Reply via email to