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 <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-11-06 13:13:20 +02:00 committed by Anas Nashif
commit c9f1ce2639

View file

@ -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