xref: /linux/net/bluetooth/Kconfig (revision f67743f9e03a67dbbf931d1787e6faf50766e521)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Bluetooth subsystem configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus Torvaldsmenuconfig BT
71da177e4SLinus Torvalds	tristate "Bluetooth subsystem support"
8864e898bSMasahiro Yamada	depends on !S390
91a097181SMarcel Holtmann	depends on RFKILL || !RFKILL
10f1e91e16SUlisses Furquim	select CRC16
11daf4ce85SRandy Dunlap	select CRYPTO
12b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
1328a220aaSArd Biesheuvel	select CRYPTO_LIB_AES
1428a220aaSArd Biesheuvel	imply CRYPTO_AES
15407cecf6SJohan Hedberg	select CRYPTO_CMAC
16f1e91e16SUlisses Furquim	select CRYPTO_ECB
175a349186SAndrei Emeltchenko	select CRYPTO_SHA256
1858771c1cSSalvatore Benedetto	select CRYPTO_ECDH
191da177e4SLinus Torvalds	help
201da177e4SLinus Torvalds	  Bluetooth is low-cost, low-power, short-range wireless technology.
211da177e4SLinus Torvalds	  It was designed as a replacement for cables and other short-range
221da177e4SLinus Torvalds	  technologies like IrDA.  Bluetooth operates in personal area range
231da177e4SLinus Torvalds	  that typically extends up to 10 meters.  More information about
24d5baf620SAlexander A. Klimov	  Bluetooth can be found at <https://www.bluetooth.com/>.
251da177e4SLinus Torvalds
261da177e4SLinus Torvalds	  Linux Bluetooth subsystem consist of several layers:
27f1e91e16SUlisses Furquim	     Bluetooth Core
28f1e91e16SUlisses Furquim		HCI device and connection manager, scheduler
29f1e91e16SUlisses Furquim		SCO audio links
30f1e91e16SUlisses Furquim		L2CAP (Logical Link Control and Adaptation Protocol)
31f1e91e16SUlisses Furquim		SMP (Security Manager Protocol) on LE (Low Energy) links
321da177e4SLinus Torvalds	     HCI Device drivers (Interface to the hardware)
331da177e4SLinus Torvalds	     RFCOMM Module (RFCOMM Protocol)
341da177e4SLinus Torvalds	     BNEP Module (Bluetooth Network Encapsulation Protocol)
351da177e4SLinus Torvalds	     CMTP Module (CAPI Message Transport Protocol)
361da177e4SLinus Torvalds	     HIDP Module (Human Interface Device Protocol)
371da177e4SLinus Torvalds
381da177e4SLinus Torvalds	  Say Y here to compile Bluetooth support into the kernel or say M to
391da177e4SLinus Torvalds	  compile it as module (bluetooth).
401da177e4SLinus Torvalds
411da177e4SLinus Torvalds	  To use Linux Bluetooth subsystem, you will need several user-space
42a0019bcaSGustavo F. Padovan	  utilities like hciconfig and bluetoothd.  These utilities and updates
43a0019bcaSGustavo F. Padovan	  to Bluetooth kernel modules are provided in the BlueZ packages.  For
44a0019bcaSGustavo F. Padovan	  more information, see <http://www.bluez.org/>.
451da177e4SLinus Torvalds
4665efd2bfSMarcel Holtmannconfig BT_BREDR
4765efd2bfSMarcel Holtmann	bool "Bluetooth Classic (BR/EDR) features"
4865efd2bfSMarcel Holtmann	depends on BT
4965efd2bfSMarcel Holtmann	default y
50198ec9aeSPavel Machek	help
51198ec9aeSPavel Machek	  Bluetooth Classic includes support for Basic Rate (BR)
52198ec9aeSPavel Machek	  available with Bluetooth version 1.0b or later and support
53198ec9aeSPavel Machek	  for Enhanced Data Rate (EDR) available with Bluetooth
54198ec9aeSPavel Machek	  version 2.0 or later.
5597550887SAlexander Aring
561da177e4SLinus Torvaldssource "net/bluetooth/rfcomm/Kconfig"
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldssource "net/bluetooth/bnep/Kconfig"
591da177e4SLinus Torvalds
601da177e4SLinus Torvaldssource "net/bluetooth/cmtp/Kconfig"
611da177e4SLinus Torvalds
621da177e4SLinus Torvaldssource "net/bluetooth/hidp/Kconfig"
631da177e4SLinus Torvalds
64244bc377SArron Wangconfig BT_HS
65244bc377SArron Wang	bool "Bluetooth High Speed (HS) features"
66244bc377SArron Wang	depends on BT_BREDR
67198ec9aeSPavel Machek	help
68198ec9aeSPavel Machek	  Bluetooth High Speed includes support for off-loading
69198ec9aeSPavel Machek	  Bluetooth connections via 802.11 (wifi) physical layer
70198ec9aeSPavel Machek	  available with Bluetooth version 3.0 or later.
71244bc377SArron Wang
7265efd2bfSMarcel Holtmannconfig BT_LE
7365efd2bfSMarcel Holtmann	bool "Bluetooth Low Energy (LE) features"
7465efd2bfSMarcel Holtmann	depends on BT
7565efd2bfSMarcel Holtmann	default y
76198ec9aeSPavel Machek	help
77198ec9aeSPavel Machek	  Bluetooth Low Energy includes support low-energy physical
78198ec9aeSPavel Machek	  layer available with Bluetooth version 4.0 or later.
7965efd2bfSMarcel Holtmann
8065efd2bfSMarcel Holtmannconfig BT_6LOWPAN
8165efd2bfSMarcel Holtmann	tristate "Bluetooth 6LoWPAN support"
8265efd2bfSMarcel Holtmann	depends on BT_LE && 6LOWPAN
8365efd2bfSMarcel Holtmann	help
8465efd2bfSMarcel Holtmann	  IPv6 compression over Bluetooth Low Energy.
8565efd2bfSMarcel Holtmann
866d5d2ee6SHeiner Kallweitconfig BT_LEDS
876d5d2ee6SHeiner Kallweit	bool "Enable LED triggers"
886d5d2ee6SHeiner Kallweit	depends on BT
896d5d2ee6SHeiner Kallweit	depends on LEDS_CLASS
906d5d2ee6SHeiner Kallweit	select LEDS_TRIGGERS
916d5d2ee6SHeiner Kallweit	help
926d5d2ee6SHeiner Kallweit	  This option selects a few LED triggers for different
936d5d2ee6SHeiner Kallweit	  Bluetooth events.
946d5d2ee6SHeiner Kallweit
95145373cbSMiao-chen Chouconfig BT_MSFTEXT
96145373cbSMiao-chen Chou	bool "Enable Microsoft extensions"
97145373cbSMiao-chen Chou	depends on BT
98145373cbSMiao-chen Chou	help
99145373cbSMiao-chen Chou	  This options enables support for the Microsoft defined HCI
100145373cbSMiao-chen Chou	  vendor extensions.
101145373cbSMiao-chen Chou
102*f67743f9SMarcel Holtmannconfig BT_AOSPEXT
103*f67743f9SMarcel Holtmann	bool "Enable Android Open Source Project extensions"
104*f67743f9SMarcel Holtmann	depends on BT
105*f67743f9SMarcel Holtmann	help
106*f67743f9SMarcel Holtmann	  This options enables support for the Android Open Source
107*f67743f9SMarcel Holtmann	  Project defined HCI vendor extensions.
108*f67743f9SMarcel Holtmann
1093d233604SMarcel Holtmannconfig BT_DEBUGFS
1103d233604SMarcel Holtmann	bool "Export Bluetooth internals in debugfs"
1113d233604SMarcel Holtmann	depends on BT && DEBUG_FS
1123d233604SMarcel Holtmann	default y
1133d233604SMarcel Holtmann	help
1143d233604SMarcel Holtmann	  Provide extensive information about internal Bluetooth states
1153d233604SMarcel Holtmann	  in debugfs.
1163d233604SMarcel Holtmann
117ee485290SMarcel Holtmannconfig BT_SELFTEST
118ee485290SMarcel Holtmann	bool "Bluetooth self testing support"
119ee485290SMarcel Holtmann	depends on BT && DEBUG_KERNEL
120ee485290SMarcel Holtmann	help
121ee485290SMarcel Holtmann	  Run self tests when initializing the Bluetooth subsystem.  This
122ee485290SMarcel Holtmann	  is a developer option and can cause significant delay when booting
123ee485290SMarcel Holtmann	  the system.
124ee485290SMarcel Holtmann
125ee485290SMarcel Holtmann	  When the Bluetooth subsystem is built as module, then the test
126ee485290SMarcel Holtmann	  cases are run first thing at module load time.  When the Bluetooth
127ee485290SMarcel Holtmann	  subsystem is compiled into the kernel image, then the test cases
128ee485290SMarcel Holtmann	  are run late in the initcall hierarchy.
129ee485290SMarcel Holtmann
1300b6415b6SJohan Hedbergconfig BT_SELFTEST_ECDH
1310b6415b6SJohan Hedberg	bool "ECDH test cases"
1320b6415b6SJohan Hedberg	depends on BT_LE && BT_SELFTEST
1330b6415b6SJohan Hedberg	help
1340b6415b6SJohan Hedberg	  Run test cases for ECDH cryptographic functionality used by the
1350b6415b6SJohan Hedberg	  Bluetooth Low Energy Secure Connections feature.
1360b6415b6SJohan Hedberg
1370a2b0f04SJohan Hedbergconfig BT_SELFTEST_SMP
1380a2b0f04SJohan Hedberg	bool "SMP test cases"
1390a2b0f04SJohan Hedberg	depends on BT_LE && BT_SELFTEST
1400a2b0f04SJohan Hedberg	help
1410a2b0f04SJohan Hedberg	  Run test cases for SMP cryptographic functionality, including both
1420a2b0f04SJohan Hedberg	  legacy SMP as well as the Secure Connections features.
1430a2b0f04SJohan Hedberg
144e625e50cSMarcel Holtmannconfig BT_FEATURE_DEBUG
145e625e50cSMarcel Holtmann	bool "Enable runtime option for debugging statements"
146e625e50cSMarcel Holtmann	depends on BT && !DYNAMIC_DEBUG
147e625e50cSMarcel Holtmann	help
148e625e50cSMarcel Holtmann	  This provides an option to enable/disable debugging statements
149e625e50cSMarcel Holtmann	  at runtime via the experimental features interface.
150e625e50cSMarcel Holtmann
1511da177e4SLinus Torvaldssource "drivers/bluetooth/Kconfig"
152