Skip to content

Commit 52d3ef5

Browse files
arndbholtmann
authored andcommitted
Bluetooth: make sure 6LOWPAN_IPHC is built-in if needed
Commit 9755088 "Bluetooth: make bluetooth 6lowpan as an option" ensures that 6LOWPAN_IPHC is turned on when we have BT_6LOWPAN enabled in Kconfig, but it allows building the IPHC code as a loadable module even if the entire Bluetooth stack is built-in, and that causes a link error. We can solve that by moving the 'select' statement into CONFIG_BT, which is a "tristate" option to enforce that 6LOWPAN_IPHC can only be a module if BT also is a module. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent dcf4adb commit 52d3ef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/bluetooth/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ menuconfig BT
66
tristate "Bluetooth subsystem support"
77
depends on NET && !S390
88
depends on RFKILL || !RFKILL
9+
select 6LOWPAN_IPHC if BT_6LOWPAN
910
select CRC16
1011
select CRYPTO
1112
select CRYPTO_BLKCIPHER
@@ -42,7 +43,6 @@ menuconfig BT
4243
config BT_6LOWPAN
4344
bool "Bluetooth 6LoWPAN support"
4445
depends on BT && IPV6
45-
select 6LOWPAN_IPHC
4646
help
4747
IPv6 compression over Bluetooth.
4848

0 commit comments

Comments
 (0)