Bluetooth: controller: llcp: serialize phy update notifications

The PHY update procedure may trigger a DLE update in certain
situations
When a limited number of rx buffers is available there may not be
enough for doing the phy update and dle update notifications
at once.

Fixes #41788

Signed-off-by: Andries Kruithof <Andries.Kruithof@nordicsemi.no>
This commit is contained in:
Andries Kruithof 2022-02-03 08:52:11 +01:00 committed by Carles Cufí
commit b909647d0a
4 changed files with 52 additions and 4 deletions

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2021 Demant
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifdef CONFIG_BT_CTLR_LLCP_CONN
#undef CONFIG_BT_CTLR_LLCP_CONN
#define CONFIG_BT_CTLR_LLCP_CONN 2
#endif

View file

@ -3,3 +3,6 @@ common:
tests:
bluetooth.controller.ctrl_phy_update.test:
type: unit
bluetooth.controller.ctrl_phy_update.test_reduced_buf:
type: unit
extra_args: KCONFIG_OVERRIDE_FILE="kconfig_override_rx_cnt.h"

View file

@ -79,7 +79,9 @@
#define CONFIG_BT_CTLR_XTAL_ADVANCED y
#endif
#ifndef CONFIG_BT_CTLR_LLCP_CONN
#define CONFIG_BT_CTLR_LLCP_CONN 4
#endif
#ifndef CONFIG_BT_CTLR_LLCP_TX_PER_CONN_TX_CTRL_BUF_NUM_MAX
#define CONFIG_BT_CTLR_LLCP_TX_PER_CONN_TX_CTRL_BUF_NUM_MAX (4)