summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stack/include/l2cdefs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/stack/include/l2cdefs.h b/stack/include/l2cdefs.h
index e24ae2720..cb6f9d829 100644
--- a/stack/include/l2cdefs.h
+++ b/stack/include/l2cdefs.h
@@ -302,10 +302,12 @@
#define L2CAP_EXT_CONTROL_OVERHEAD 4 /* Extended Control Field */
#define L2CAP_MAX_HEADER_FCS (L2CAP_PKT_OVERHEAD + L2CAP_EXT_CONTROL_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_LEN)
/* length(2), channel(2), control(4), SDU length(2) FCS(2) */
+
/* To optimize this, it must be a multiplum of the L2CAP PDU length AND match the 3DH5 air
* including the l2cap headers in each packet - to match the latter - the -5 is added
+ * Changed it to 8087 to have same value between BTIF and L2cap layers
*/
-#define L2CAP_MAX_SDU_LENGTH (GKI_BUF4_SIZE - (L2CAP_MIN_OFFSET + L2CAP_MAX_HEADER_FCS) -5)
+#define L2CAP_MAX_SDU_LENGTH (GKI_BUF4_SIZE - (L2CAP_MIN_OFFSET + 6))
/* Part of L2CAP_MIN_OFFSET that is not part of L2CAP
*/