lkml.org 
[lkml]   [2021]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] L2CAP receive buffer overflow
 From 716e6b5b15eb5d7f87c799b545aeb5188128c36f Mon Sep 17 00:00:00 2001
From: Kirill Panin <s02200455@stud.cs.msu.ru>
Date: Tue, 14 Sep 2021 02:41:58 +0300
Subject: [PATCH] Increase L2CAP default MTU.

Some Android devices transmit packets with length bigger than MTU.
For more information refer to:
https://github.com/anonymix007/libldacdec/issues/1
Changes: Increase default MTU up to 688

Signed-off-by: Kirill Panin <s02200455@stud.cs.msu.ru>
---
include/net/bluetooth/l2cap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/bluetooth/l2cap.h
b/include/net/bluetooth/l2cap.h
index 3c4f550e5a8b..db2a4ebc375b 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -31,7 +31,7 @@
#include <linux/atomic.h>

/* L2CAP defaults */
-#define L2CAP_DEFAULT_MTU 672
+#define L2CAP_DEFAULT_MTU 688
#define L2CAP_DEFAULT_MIN_MTU 48
#define L2CAP_DEFAULT_FLUSH_TO 0xFFFF
#define L2CAP_EFS_DEFAULT_FLUSH_TO 0xFFFFFFFF
--
2.20.1
\
 
 \ /
  Last update: 2021-09-14 03:21    [W:0.026 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site