Add version kconfig and makefile option to support wifi-6e usb.
Change-Id: I9cf0b7035942fd62018ec6c104f9371b03bf1099
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
questions about these cards. If you say Y, you will be asked for
your specific card in the following questions.
+choice
+ prompt "Select vendor mediatek version"
+ depends on WLAN_VENDOR_MEDIATEK
+ default MT76_NONE_SUPPORT_6E_USB
+
+config MT76_NONE_SUPPORT_6E_USB
+ bool "MediaTek none support wifi-6e usb"
+
+config MT76_SUPPORT_6E_USB
+ bool "MediaTek support wifi-6e usb"
+
+endchoice
+
if WLAN_VENDOR_MEDIATEK
source "drivers/net/wireless/mediatek/mt7601u/Kconfig"
+if MT76_NONE_SUPPORT_6E_USB
source "drivers/net/wireless/mediatek/mt76/Kconfig"
+endif
+if MT76_SUPPORT_6E_USB
+source "drivers/net/wireless/mediatek/mt76-6e-usb/Kconfig"
+endif
endif # WLAN_VENDOR_MEDIATEK
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_MT7601U) += mt7601u/
+ifdef CONFIG_MT76_NONE_SUPPORT_6E_USB
obj-$(CONFIG_MT76_CORE) += mt76/
+else
+obj-$(CONFIG_MT76_CORE) += mt76-6e-usb/
+endif
tristate
select MT76_CORE
-source "drivers/net/wireless/mediatek/mt76/mt76x0/Kconfig"
-source "drivers/net/wireless/mediatek/mt76/mt76x2/Kconfig"
-source "drivers/net/wireless/mediatek/mt76/mt7603/Kconfig"
-source "drivers/net/wireless/mediatek/mt76/mt7615/Kconfig"
-source "drivers/net/wireless/mediatek/mt76/mt7915/Kconfig"
-source "drivers/net/wireless/mediatek/mt76/mt7921/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt76x0/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt76x2/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt7603/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt7615/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt7915/Kconfig"
+source "drivers/net/wireless/mediatek/mt76-6e-usb/mt7921/Kconfig"