Skip to content

Commit 255dd5b

Browse files
arndbKalle Valo
authored andcommitted
Bluetooth: btrsi: rework dependencies
The linkage between the bluetooth driver and the wireless driver is not defined properly, leading to build problems such as: warning: (BT_HCIRSI) selects RSI_COEX which has unmet direct dependencies (NETDEVICES && WLAN && WLAN_VENDOR_RSI && BT_HCIRSI && RSI_91X) drivers/net/wireless/rsi/rsi_91x_main.o: In function `rsi_read_pkt': (.text+0x205): undefined reference to `rsi_bt_ops' As the dependency is actually the reverse (RSI_91X uses the BT_RSI driver, not the other way round), this changes the dependency to match, and enables the bluetooth driver from the RSI_COEX symbol. Fixes: 38aa4da ("Bluetooth: btrsi: add new rsi bluetooth driver") Acked-by; Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent abd5f00 commit 255dd5b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/bluetooth/Kconfig‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ config BT_QCOMSMD
393393
kernel or say M to compile as a module.
394394

395395
config BT_HCIRSI
396-
tristate "Redpine HCI support"
397-
default n
398-
select RSI_COEX
396+
tristate
399397
help
400398
Redpine BT driver.
401399
This driver handles BT traffic from upper layers and pass

‎drivers/net/wireless/rsi/Kconfig‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if WLAN_VENDOR_RSI
1313

1414
config RSI_91X
1515
tristate "Redpine Signals Inc 91x WLAN driver support"
16+
select BT_HCIRSI if RSI_COEX
1617
depends on MAC80211
1718
---help---
1819
This option enabes support for RSI 1x1 devices.
@@ -44,7 +45,8 @@ config RSI_USB
4445

4546
config RSI_COEX
4647
bool "Redpine Signals WLAN BT Coexistence support"
47-
depends on BT_HCIRSI && RSI_91X
48+
depends on BT && RSI_91X
49+
depends on !(BT=m && RSI_91X=y)
4850
default y
4951
---help---
5052
This option enables the WLAN BT coex support in rsi drivers.

0 commit comments

Comments
 (0)