diff mbox series

iwlwifi: iwlmvm: add rfkill dependency

Message ID 20220226230219.1869205-1-ztong0001@gmail.com
State New
Headers show
Series iwlwifi: iwlmvm: add rfkill dependency | expand

Commit Message

Tong Zhang Feb. 26, 2022, 11:02 p.m. UTC
IWLMVM uses symbol rfkill_soft_blocked, thus RFKILL should be a
dependency

In file included from drivers/net/wireless/intel/iwlwifi/mvm/fw.c:19:
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h: In function ‘iwl_mvm_mei_set_sw_rfkill_state’:
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2215:24: error: implicit declaration of function ‘rfkill_soft_blocked’; did you mean ‘rfkill_blocked’? [-Werror=implicit-function-declaration]
 2215 |   mvm->hw_registered ? rfkill_soft_blocked(mvm->hw->wiphy->rfkill) : false;
      |                        ^~~~~~~~~~~~~~~~~~~
      |                        rfkill_blocked
cc1: some warnings being treated as errors

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
---
 drivers/net/wireless/intel/iwlwifi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/Kconfig b/drivers/net/wireless/intel/iwlwifi/Kconfig
index 85e704283755..64eaf8f943c4 100644
--- a/drivers/net/wireless/intel/iwlwifi/Kconfig
+++ b/drivers/net/wireless/intel/iwlwifi/Kconfig
@@ -65,6 +65,7 @@  config IWLDVM
 config IWLMVM
 	tristate "Intel Wireless WiFi MVM Firmware support"
 	select WANT_DEV_COREDUMP
+	depends on RFKILL
 	depends on MAC80211
 	help
 	  This is the driver that supports the MVM firmware. The list