From c9f1ce26393f705c32c325b9a5232f4641b6da04 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 6 Nov 2015 13:13:20 +0200 Subject: [PATCH] Bluetooth: Increase default ATT MTU when possible The 23 bytes default is quite limiting. When SMP has been enabled we can do a bit better since we know that we can fit two complete ACL packets to the buffers (23 bytes payload in the first, and 27 in the second). Change-Id: I71d9c484c962b1ff46d325f7182511f168608b8e Signed-off-by: Johan Hedberg --- net/bluetooth/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index 00d72ec7259..1523e86759f 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig @@ -108,6 +108,8 @@ config BLUETOOTH_L2CAP_IN_MTU config BLUETOOTH_ATT_MTU int "Attribute Protocol (ATT) channel MTU" + default 50 if BLUETOOTH_SMP # BLUETOOTH_L2CAP_IN_MTU is big enough + # for two complete ACL packets default 23 range 23 BLUETOOTH_L2CAP_IN_MTU help