Skip to content

Commit 65efd2b

Browse files
holtmannjhedberg
authored andcommitted
Bluetooth: Introduce BT_BREDR and BT_LE config options
The current kernel options do not make it clear which modules are for Bluetooth Classic (BR/EDR) and which are for Bluetooth Low Energy (LE). To make it really clear, introduce BT_BREDR and BT_LE options with proper dependencies into the different modules. Both new options default to y to not create a regression with previous kernel config files. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent b344900 commit 65efd2b

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎net/bluetooth/Kconfig‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ menuconfig BT
3939
to Bluetooth kernel modules are provided in the BlueZ packages. For
4040
more information, see <http://www.bluez.org/>.
4141

42-
config BT_6LOWPAN
43-
tristate "Bluetooth 6LoWPAN support"
44-
depends on BT && 6LOWPAN
45-
help
46-
IPv6 compression over Bluetooth Low Energy.
42+
config BT_BREDR
43+
bool "Bluetooth Classic (BR/EDR) features"
44+
depends on BT
45+
default y
4746

4847
source "net/bluetooth/rfcomm/Kconfig"
4948

@@ -53,4 +52,15 @@ source "net/bluetooth/cmtp/Kconfig"
5352

5453
source "net/bluetooth/hidp/Kconfig"
5554

55+
config BT_LE
56+
bool "Bluetooth Low Energy (LE) features"
57+
depends on BT
58+
default y
59+
60+
config BT_6LOWPAN
61+
tristate "Bluetooth 6LoWPAN support"
62+
depends on BT_LE && 6LOWPAN
63+
help
64+
IPv6 compression over Bluetooth Low Energy.
65+
5666
source "drivers/bluetooth/Kconfig"

‎net/bluetooth/bnep/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config BT_BNEP
22
tristate "BNEP protocol support"
3-
depends on BT
3+
depends on BT_BREDR
44
select CRC32
55
help
66
BNEP (Bluetooth Network Encapsulation Protocol) is Ethernet

‎net/bluetooth/cmtp/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config BT_CMTP
22
tristate "CMTP protocol support"
3-
depends on BT && ISDN_CAPI
3+
depends on BT_BREDR && ISDN_CAPI
44
help
55
CMTP (CAPI Message Transport Protocol) is a transport layer
66
for CAPI messages. CMTP is required for the Bluetooth Common

‎net/bluetooth/hidp/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config BT_HIDP
22
tristate "HIDP protocol support"
3-
depends on BT && INPUT
3+
depends on BT_BREDR && INPUT
44
select HID
55
help
66
HIDP (Human Interface Device Protocol) is a transport layer

‎net/bluetooth/rfcomm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config BT_RFCOMM
22
tristate "RFCOMM protocol support"
3-
depends on BT
3+
depends on BT_BREDR
44
help
55
RFCOMM provides connection oriented stream transport. RFCOMM
66
support is required for Dialup Networking, OBEX and other Bluetooth

0 commit comments

Comments
 (0)