@@ -93,10 +93,10 @@ config IWLWIFI_BCAST_FILTERING
expect incoming broadcasts for their normal operations.
config IWLMEI
- tristate "Intel Management Engine communication over WLAN"
- depends on INTEL_MEI
+ bool "Intel Management Engine communication over WLAN"
+ depends on INTEL_MEI=y || INTEL_MEI=IWLMVM
+ depends on IWLMVM=y || IWLWIFI=m
depends on PM
- depends on IWLMVM
help
Enables the iwlmei kernel module.
@@ -29,7 +29,6 @@ iwlwifi-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o
ccflags-y += -I$(src)
obj-$(CONFIG_IWLDVM) += dvm/
-obj-$(CONFIG_IWLMVM) += mvm/
-obj-$(CONFIG_IWLMEI) += mei/
+obj-$(CONFIG_IWLMVM) += mvm/ mei/
CFLAGS_iwl-devtrace.o := -I$(src)
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_IWLMEI) += iwlmei.o
+ifdef CONFIG_IWLMEI
+obj-$(CONFIG_IWLWIFI) += iwlmei.o
+endif
iwlmei-y += main.o
iwlmei-y += net.o
iwlmei-$(CONFIG_IWLWIFI_DEVICE_TRACING) += trace.o