From 6f3cddc7a40a2a8d30701cc3f51586109dd04ae5 Mon Sep 17 00:00:00 2001 From: lintao Date: Mon, 13 May 2013 10:52:02 +0800 Subject: [PATCH] WIFI: support mt7601u usb wifi --- drivers/net/wireless/Kconfig | 1 + drivers/net/wireless/Makefile | 1 + drivers/net/wireless/rkusbwifi/Makefile | 2 +- drivers/net/wireless/rkusbwifi/mt7601/Kconfig | 8 ++++++++ drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c | 6 ++++++ 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 drivers/net/wireless/rkusbwifi/mt7601/Kconfig diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index 697b18a97370..fb3fe1a81fb0 100755 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig @@ -108,6 +108,7 @@ source "drivers/net/wireless/rkusbwifi/rtl8192cu/Kconfig" source "drivers/net/wireless/rkusbwifi/rtl8188eu/Kconfig" source "drivers/net/wireless/rkusbwifi/rtl8723au/Kconfig" source "drivers/net/wireless/rkusbwifi/rt5370/Kconfig" +source "drivers/net/wireless/rkusbwifi/mt7601/Kconfig" source "drivers/net/wireless/ar6003/Kconfig" source "drivers/net/wireless/rtl8723as/Kconfig" source "drivers/net/wireless/rkwifi/Kconfig" diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile index 64d1d3ed4239..3ad41063d2de 100755 --- a/drivers/net/wireless/Makefile +++ b/drivers/net/wireless/Makefile @@ -15,4 +15,5 @@ obj-$(CONFIG_RDA5990) += rda5990/ obj-$(CONFIG_MT5931) += mt5931/ obj-$(CONFIG_MT5931_MT6622) += mt5931/ obj-$(CONFIG_RTL8723AS) += rtl8723as/ +obj-$(CONFIG_MT7601) += rkusbwifi/ #obj-m += wlan/ diff --git a/drivers/net/wireless/rkusbwifi/Makefile b/drivers/net/wireless/rkusbwifi/Makefile index c00980b17bf6..d598e47b6674 100755 --- a/drivers/net/wireless/rkusbwifi/Makefile +++ b/drivers/net/wireless/rkusbwifi/Makefile @@ -9,7 +9,7 @@ obj-$(CONFIG_RTL8188EU) += rkcfg.o obj-$(CONFIG_RTL8192CU) += rkcfg.o obj-$(CONFIG_RTL8723AU) += rkcfg.o obj-$(CONFIG_RT5370) += rkcfg.o - +obj-$(CONFIG_MT7601) += rkcfg.o .PHONY: clean clean: diff --git a/drivers/net/wireless/rkusbwifi/mt7601/Kconfig b/drivers/net/wireless/rkusbwifi/mt7601/Kconfig new file mode 100755 index 000000000000..23a906b8bb4f --- /dev/null +++ b/drivers/net/wireless/rkusbwifi/mt7601/Kconfig @@ -0,0 +1,8 @@ +config MT7601 + tristate "Mediatek MT7601 USB WiFi Support" + select WIRELESS_EXT + select WEXT_PRIV + select IEEE80211 + ---help--- + Help message of MT7601 + diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index 84180e0762b9..b36efa2d8c77 100755 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -107,6 +107,12 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf) printk("Current WiFi chip is MT5931.\n"); #endif +#ifdef CONFIG_MT7601 + count = sprintf(_buf, "%s", "MT7601"); + printk("Current WiFi chip is MT7601.\n"); +#endif + + #ifdef CONFIG_RTL8723AS count = sprintf(_buf, "%s", "RTL8723AS"); printk("Current WiFi chip is RTL8723AS.\n"); -- 2.34.1