Skip to content

Commit b35d39a

Browse files
author
Thomas Stenersen
committed
kconfig: bluetooth: Let BT_HCI_VS be configurable from controller
This moves the vendor-specific HCI command/event configuration definitions out of bluetooth/common into bluetooth. This allows the controller itself to indicate its support for vendor-specific commands/events. Signed-off-by: Thomas Stenersen <[email protected]>
1 parent da850d5 commit b35d39a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

subsys/bluetooth/common/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
# SPDX-License-Identifier: Apache-2.0
77
#
88

9+
config BT_HAS_HCI_VS
10+
bool
11+
help
12+
This option is set by the Bluetooth controller to indicate support
13+
for the Zephyr HCI Vendor-Specific Commands and Event.
14+
915
config BT_HCI_VS
1016
bool "Zephyr HCI Vendor-Specific Commands"
17+
depends on BT_HAS_HCI_VS
1118
default y
1219
help
1320
Enable support for the Zephyr HCI Vendor-Specific Commands in the

subsys/bluetooth/controller/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ choice BT_LL_CHOICE
2323
config BT_LL_SW
2424
bool "Software-based BLE Link Layer"
2525
select BT_RECV_IS_RX_THREAD
26+
select BT_HAS_HCI_VS
2627
select ENTROPY_GENERATOR
2728
select ENTROPY_NRF5_RNG if SOC_COMPATIBLE_NRF
2829
select ENTROPY_NRF5_BIAS_CORRECTION if SOC_COMPATIBLE_NRF

0 commit comments

Comments
 (0)