2019-05-19 12:07:45 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# Bluetooth subsystem configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig BT
|
|
|
|
tristate "Bluetooth subsystem support"
|
2021-01-25 23:20:26 +00:00
|
|
|
depends on !S390
|
2009-06-14 13:21:25 +00:00
|
|
|
depends on RFKILL || !RFKILL
|
2011-12-21 03:32:09 +00:00
|
|
|
select CRC16
|
2011-06-22 17:08:11 +00:00
|
|
|
select CRYPTO
|
2019-10-25 19:41:13 +00:00
|
|
|
select CRYPTO_SKCIPHER
|
2019-07-02 19:41:41 +00:00
|
|
|
select CRYPTO_LIB_AES
|
|
|
|
imply CRYPTO_AES
|
2014-05-02 11:19:47 +00:00
|
|
|
select CRYPTO_CMAC
|
2011-12-21 03:32:09 +00:00
|
|
|
select CRYPTO_ECB
|
2012-09-27 14:26:18 +00:00
|
|
|
select CRYPTO_SHA256
|
2017-04-24 12:13:20 +00:00
|
|
|
select CRYPTO_ECDH
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
|
|
|
Bluetooth is low-cost, low-power, short-range wireless technology.
|
|
|
|
It was designed as a replacement for cables and other short-range
|
|
|
|
technologies like IrDA. Bluetooth operates in personal area range
|
|
|
|
that typically extends up to 10 meters. More information about
|
2020-07-08 13:36:38 +00:00
|
|
|
Bluetooth can be found at <https://www.bluetooth.com/>.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
Linux Bluetooth subsystem consist of several layers:
|
2011-12-21 03:32:09 +00:00
|
|
|
Bluetooth Core
|
|
|
|
HCI device and connection manager, scheduler
|
|
|
|
SCO audio links
|
|
|
|
L2CAP (Logical Link Control and Adaptation Protocol)
|
|
|
|
SMP (Security Manager Protocol) on LE (Low Energy) links
|
2019-07-29 15:15:43 +00:00
|
|
|
ISO isochronous links
|
2005-04-16 22:20:36 +00:00
|
|
|
HCI Device drivers (Interface to the hardware)
|
|
|
|
RFCOMM Module (RFCOMM Protocol)
|
|
|
|
BNEP Module (Bluetooth Network Encapsulation Protocol)
|
|
|
|
CMTP Module (CAPI Message Transport Protocol)
|
|
|
|
HIDP Module (Human Interface Device Protocol)
|
|
|
|
|
|
|
|
Say Y here to compile Bluetooth support into the kernel or say M to
|
|
|
|
compile it as module (bluetooth).
|
|
|
|
|
|
|
|
To use Linux Bluetooth subsystem, you will need several user-space
|
2011-02-07 21:15:43 +00:00
|
|
|
utilities like hciconfig and bluetoothd. These utilities and updates
|
|
|
|
to Bluetooth kernel modules are provided in the BlueZ packages. For
|
|
|
|
more information, see <http://www.bluez.org/>.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2014-11-02 02:32:25 +00:00
|
|
|
config BT_BREDR
|
|
|
|
bool "Bluetooth Classic (BR/EDR) features"
|
|
|
|
depends on BT
|
|
|
|
default y
|
2017-08-08 13:48:40 +00:00
|
|
|
help
|
|
|
|
Bluetooth Classic includes support for Basic Rate (BR)
|
|
|
|
available with Bluetooth version 1.0b or later and support
|
|
|
|
for Enhanced Data Rate (EDR) available with Bluetooth
|
|
|
|
version 2.0 or later.
|
2014-03-04 09:23:02 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
source "net/bluetooth/rfcomm/Kconfig"
|
|
|
|
|
|
|
|
source "net/bluetooth/bnep/Kconfig"
|
|
|
|
|
|
|
|
source "net/bluetooth/cmtp/Kconfig"
|
|
|
|
|
|
|
|
source "net/bluetooth/hidp/Kconfig"
|
|
|
|
|
2014-11-02 02:32:25 +00:00
|
|
|
config BT_LE
|
|
|
|
bool "Bluetooth Low Energy (LE) features"
|
|
|
|
depends on BT
|
|
|
|
default y
|
2017-08-08 13:48:40 +00:00
|
|
|
help
|
|
|
|
Bluetooth Low Energy includes support low-energy physical
|
|
|
|
layer available with Bluetooth version 4.0 or later.
|
2014-11-02 02:32:25 +00:00
|
|
|
|
2022-10-27 23:18:04 +00:00
|
|
|
config BT_LE_L2CAP_ECRED
|
|
|
|
bool "Bluetooth L2CAP Enhanced Credit Flow Control"
|
|
|
|
depends on BT_LE
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Bluetooth Low Energy L2CAP Enhanced Credit Flow Control available with
|
|
|
|
Bluetooth version 5.2 or later.
|
|
|
|
|
|
|
|
This can be overridden by passing bluetooth.enable_ecred=[1|0]
|
|
|
|
on the kernel commandline.
|
|
|
|
|
2014-11-02 02:32:25 +00:00
|
|
|
config BT_6LOWPAN
|
|
|
|
tristate "Bluetooth 6LoWPAN support"
|
|
|
|
depends on BT_LE && 6LOWPAN
|
|
|
|
help
|
|
|
|
IPv6 compression over Bluetooth Low Energy.
|
|
|
|
|
2016-01-08 18:28:58 +00:00
|
|
|
config BT_LEDS
|
|
|
|
bool "Enable LED triggers"
|
|
|
|
depends on BT
|
|
|
|
depends on LEDS_CLASS
|
|
|
|
select LEDS_TRIGGERS
|
|
|
|
help
|
|
|
|
This option selects a few LED triggers for different
|
|
|
|
Bluetooth events.
|
|
|
|
|
2020-04-03 19:44:01 +00:00
|
|
|
config BT_MSFTEXT
|
|
|
|
bool "Enable Microsoft extensions"
|
|
|
|
depends on BT
|
|
|
|
help
|
|
|
|
This options enables support for the Microsoft defined HCI
|
|
|
|
vendor extensions.
|
|
|
|
|
2021-04-06 19:55:52 +00:00
|
|
|
config BT_AOSPEXT
|
|
|
|
bool "Enable Android Open Source Project extensions"
|
|
|
|
depends on BT
|
|
|
|
help
|
|
|
|
This options enables support for the Android Open Source
|
|
|
|
Project defined HCI vendor extensions.
|
|
|
|
|
2020-04-03 19:44:00 +00:00
|
|
|
config BT_DEBUGFS
|
|
|
|
bool "Export Bluetooth internals in debugfs"
|
|
|
|
depends on BT && DEBUG_FS
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Provide extensive information about internal Bluetooth states
|
|
|
|
in debugfs.
|
|
|
|
|
2014-12-30 04:48:35 +00:00
|
|
|
config BT_SELFTEST
|
|
|
|
bool "Bluetooth self testing support"
|
|
|
|
depends on BT && DEBUG_KERNEL
|
|
|
|
help
|
|
|
|
Run self tests when initializing the Bluetooth subsystem. This
|
|
|
|
is a developer option and can cause significant delay when booting
|
|
|
|
the system.
|
|
|
|
|
|
|
|
When the Bluetooth subsystem is built as module, then the test
|
|
|
|
cases are run first thing at module load time. When the Bluetooth
|
|
|
|
subsystem is compiled into the kernel image, then the test cases
|
|
|
|
are run late in the initcall hierarchy.
|
|
|
|
|
2014-12-30 04:48:36 +00:00
|
|
|
config BT_SELFTEST_ECDH
|
|
|
|
bool "ECDH test cases"
|
|
|
|
depends on BT_LE && BT_SELFTEST
|
|
|
|
help
|
|
|
|
Run test cases for ECDH cryptographic functionality used by the
|
|
|
|
Bluetooth Low Energy Secure Connections feature.
|
|
|
|
|
2014-12-30 07:50:39 +00:00
|
|
|
config BT_SELFTEST_SMP
|
|
|
|
bool "SMP test cases"
|
|
|
|
depends on BT_LE && BT_SELFTEST
|
|
|
|
help
|
|
|
|
Run test cases for SMP cryptographic functionality, including both
|
|
|
|
legacy SMP as well as the Secure Connections features.
|
|
|
|
|
2020-05-06 07:57:52 +00:00
|
|
|
config BT_FEATURE_DEBUG
|
|
|
|
bool "Enable runtime option for debugging statements"
|
|
|
|
depends on BT && !DYNAMIC_DEBUG
|
|
|
|
help
|
|
|
|
This provides an option to enable/disable debugging statements
|
|
|
|
at runtime via the experimental features interface.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
source "drivers/bluetooth/Kconfig"
|