iwlwifi: mei: fix building iwlmei
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Mar 2022 18:36:03 +0000 (19:36 +0100)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Mar 2022 14:14:25 +0000 (16:14 +0200)
commit066291bec0c55315e568ead501bebdefcb8453d2
treec5e7adf482ce18a865140221883d3ac283025cf2
parentd179c1f1c3703d1a6f7a6f2ad08383220673240c
iwlwifi: mei: fix building iwlmei

Building iwlmei without CONFIG_CFG80211 causes a link-time warning:

ld.lld: error: undefined symbol: ieee80211_hdrlen
>>> referenced by net.c
>>>               net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme) in archive drivers/built-in.a

Add an explicit dependency to avoid this. In theory it should not
be needed here, but it also seems pointless to allow IWLMEI
for configurations without CFG80211.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Emmanuel Grumbach <Emmanuel.grumbach@intel.com>
Acked-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220316183617.1470631-1-arnd@kernel.org
drivers/net/wireless/intel/iwlwifi/Kconfig