Skip to content

Commit f564264

Browse files
committed
[nrf noup] Bluetooth: Controller: Fix use of HAS_BT_CTLR with BT_CTLR
Fix use of HAS_BT_CTLR with BT_CTLR due to previous cherry pick commit. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 1aaac36 commit f564264

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

subsys/bluetooth/common/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ config BT_BUF_CMD_TX_SIZE
203203
config BT_BUF_CMD_TX_COUNT
204204
# This option is only visible for a user when Host and Controller are build together, or for
205205
# Host-only builds.
206-
int "Number of HCI command buffers" if !BT_HCI_RAW || !HAS_BT_CTLR
206+
int "Number of HCI command buffers" if !BT_HCI_RAW || !BT_CTLR
207207
# This option is present when Host and Controller are build together, or
208208
# for Host only builds, or when Controller-to-Host ACL data flow control
209209
# is disabled.
210-
depends on !BT_HCI_RAW || !HAS_BT_CTLR || !BT_HCI_ACL_FLOW_CONTROL
210+
depends on !BT_HCI_RAW || !BT_CTLR || !BT_HCI_ACL_FLOW_CONTROL
211211
# The Mesh stack usage in applications and tests can start both advertising and scanning in
212212
# parallel. Also, when BT_MESH_WORKQ_SYS is enabled, the Mesh stack is starting Extended
213213
# Advertising in the receive callback run in the system work queue and as the Host also uses

subsys/bluetooth/common/hci_common_internal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#if !defined(CONFIG_BT_HCI_RAW) || !defined(CONFIG_HAS_BT_CTLR) || \
7+
#if !defined(CONFIG_BT_HCI_RAW) || !defined(CONFIG_BT_CTLR) || \
88
!defined(CONFIG_BT_HCI_ACL_FLOW_CONTROL)
99
/* Following build configurations use configurable CONFIG_BT_BUF_CMD_TX_COUNT:
1010
* 1. Host + Controller build with and without Controller to Host data flow control, or
@@ -20,11 +20,11 @@
2020
#define BT_BUF_CMD_TX_AUTO_DATA_LEN_UPDATE COND_CODE_1(CONFIG_BT_AUTO_DATA_LEN_UPDATE, (1), (0))
2121

2222
#else /* CONFIG_BT_HCI_RAW */
23-
#if defined(CONFIG_HAS_BT_CTLR)
23+
#if defined(CONFIG_BT_CTLR)
2424
/* Controller-only build need no additional HCI command buffers */
2525
BUILD_ASSERT((CONFIG_BT_BUF_CMD_TX_COUNT == CONFIG_BT_CTLR_HCI_NUM_CMD_PKT_MAX),
2626
"Mismatch in allocated HCI command buffers compared to Controller supported value.");
27-
#endif /* CONFIG_HAS_BT_CTLR */
27+
#endif /* CONFIG_BT_CTLR */
2828

2929
/* Controller-only build do not enqueue auto initiated HCI commands */
3030
#define BT_BUF_CMD_TX_REMOTE_VERSION 0

0 commit comments

Comments
 (0)