mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Panin Kirill <s02200455@stud.cs.msu.ru>
To: "marcel@holtmann.org johan.hedberg@gmail.com
	luiz.dentz@gmail.com davem@davemloft.net" <kuba@kernel.org>
Cc: "linux-bluetooth@vger.kernel.org netdev@vger.kernel.org" 
	<linux-kernel@vger.kernel.org>
Subject: [PATCH] L2CAP receive buffer overflow
Date: Tue, 14 Sep 2021 03:41:48 +0300	[thread overview]
Message-ID: <06ec9b9168eae566c07c920b0b97ae4a@stud.cs.msu.ru> (raw)

 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

                 reply	other threads:[~2021-09-14  1:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06ec9b9168eae566c07c920b0b97ae4a@stud.cs.msu.ru \
    --to=s02200455@stud.cs.msu.ru \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®