From 3d9784a79e6fc40850077e07f89b525cfc836006 Mon Sep 17 00:00:00 2001 From: Piotr Pryga Date: Tue, 4 Jan 2022 07:12:54 +0100 Subject: [PATCH] Bluetooth: Controller: change def val BT_CTLR_LLCP_PROC_CTX_BUF_NUM Default value for CONFIG_BT_CTLR_LLCP_PROC_CTX_BUF_NUM was set to CONFIG_BT_CTLR_LLCP_CONN, so the value was 1. That caused a problem if a device had started a local control procedure and remote procedure request was received. Ther there were no free context for remote procedure. The commit changes the range of allowed value to start from 2. Also the default value is set to two if CONFIG_BT_CTLR_LLCP_CONN is 1. In other case default value is set to number of CONFIG_BT_- LLCP_CONN. Signed-off-by: Piotr Pryga --- subsys/bluetooth/controller/Kconfig.ll_sw_split | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/Kconfig.ll_sw_split b/subsys/bluetooth/controller/Kconfig.ll_sw_split index e762f11d28c..646a4ee2315 100644 --- a/subsys/bluetooth/controller/Kconfig.ll_sw_split +++ b/subsys/bluetooth/controller/Kconfig.ll_sw_split @@ -534,8 +534,9 @@ config BT_CTLR_LLCP_COMMON_TX_CTRL_BUF_NUM config BT_CTLR_LLCP_PROC_CTX_BUF_NUM int "Number of control procedure contexts to be available across all connections" - default BT_CTLR_LLCP_CONN - range 1 255 + default 2 if BT_CTLR_LLCP_CONN = 1 + default BT_CTLR_LLCP_CONN if BT_CTLR_LLCP_CONN > 1 + range 2 255 help Set the number control procedure contexts that is to be available. This defines the size of the pool of control procedure contexts available