From e4c5c96a16fa20294c9a7a9cf63f355cd184b293 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 9 Nov 2016 17:38:05 +0200 Subject: [PATCH] Bluetooth: Fine-tune default incoming ACL buffer count In some SMP + GATT scenarios it's possible we get up to 6 incoming ACL packets. To handle these efficiently, and more importantly, to not have to drop data if the controller lacks host flow control (as is the case currently with Zephyr-based controllers), increase the default from 5 to 6. For a controller-build it makes sense to just match up with the controller-side configured RX buffers. Change-Id: Id44fa724597b88a51f9085dac009e8d84a439bfc Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 89c04b34f28..51005e92bd2 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -84,7 +84,8 @@ config BLUETOOTH_UART_TO_HOST_DEV_NAME if BLUETOOTH_CONN || BLUETOOTH_HCI_RAW config BLUETOOTH_ACL_IN_COUNT int "Number of incoming ACL data buffers" - default 5 + default BLUETOOTH_CONTROLLER_RX_BUFFERS if BLUETOOTH_CONTROLLER + default 6 range 2 64 help Number of buffers available for incoming ACL data.