Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@qnighy
Created February 5, 2015 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qnighy/bca70e6652e9a0d02be7 to your computer and use it in GitHub Desktop.
Save qnighy/bca70e6652e9a0d02be7 to your computer and use it in GitHub Desktop.
Driver Patches for MT7610U/GW-450D/WN-AC433UK
diff -ru mt7610u_wifi_sta_v3002_dpo_20130916.orig/conf/RT2870STA.dat mt7610u_wifi_sta_v3002_dpo_20130916/conf/RT2870STA.dat
--- mt7610u_wifi_sta_v3002_dpo_20130916.orig/conf/RT2870STA.dat 2013-09-16 14:03:08.000000000 +0000
+++ mt7610u_wifi_sta_v3002_dpo_20130916/conf/RT2870STA.dat 2015-02-05 03:44:58.137632375 +0000
@@ -4,7 +4,7 @@
CountryRegionABand=7
CountryCode=
ChannelGeography=1
-SSID=11n-AP
+SSID=
NetworkType=Infra
WirelessMode=5
EfuseBufferMode=0
@@ -19,8 +19,8 @@
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
-AuthMode=OPEN
-EncrypType=NONE
+AuthMode=WPA2PSK
+EncrypType=AES
WPAPSK=
DefaultKeyID=1
Key1Type=0
diff -ru mt7610u_wifi_sta_v3002_dpo_20130916.orig/os/linux/config.mk mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/config.mk
--- mt7610u_wifi_sta_v3002_dpo_20130916.orig/os/linux/config.mk 2013-09-16 14:03:08.000000000 +0000
+++ mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/config.mk 2015-02-05 03:44:38.388062777 +0000
@@ -23,12 +23,12 @@
# Support Wpa_Supplicant
# i.e. wpa_supplicant -Dralink
-HAS_WPA_SUPPLICANT=n
+HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
# i.e. wpa_supplicant -Dwext
-HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
+HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
#Support Net interface block while Tx-Sw queue full
HAS_BLOCK_NET_IF=n
@@ -660,7 +660,7 @@
WFLAGS += -DCONFIG_CSO_SUPPORT -DCONFIG_TSO_SUPPORT
endif
-CHIPSET_DAT = 2860
+CHIPSET_DAT = 2870
endif
ifneq ($(or $(findstring mt7662e,$(CHIPSET)),$(findstring mt7612e,$(CHIPSET))),)
diff -ru mt7610u_wifi_sta_v3002_dpo_20130916.orig/common/rtusb_dev_id.c mt7610u_wifi_sta_v3002_dpo_20130916/common/rtusb_dev_id.c
--- mt7610u_wifi_sta_v3002_dpo_20130916.orig/common/rtusb_dev_id.c 2013-09-16 14:03:08.000000000 +0000
+++ mt7610u_wifi_sta_v3002_dpo_20130916/common/rtusb_dev_id.c 2015-02-04 15:54:20.890000000 +0000
@@ -36,6 +36,8 @@
/* module table */
USB_DEVICE_ID rtusb_dev_id[] = {
#ifdef MT76x0
+ {USB_DEVICE(0x2019,0xAB31)}, /* GW-450D */
+ {USB_DEVICE(0x04BB,0x0951)}, /* WN-AC433UK */
{USB_DEVICE(0x148F,0x7610)}, /* MT7610U */
{USB_DEVICE(0x0E8D,0x7610)}, /* MT7610U */
{USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7630, 0xff, 0x2, 0xff)}, /* MT7630U */
diff -ru mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h mt7610u_wifi_sta_v3002_dpo_20130916-old/include/os/rt_linux.h
--- mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h 2013-09-16 14:03:08.000000000 +0000
+++ mt7610u_wifi_sta_v3002_dpo_20130916-old/include/os/rt_linux.h 2015-01-27 13:08:52.914599778 +0000
@@ -277,8 +277,8 @@
typedef struct _OS_FS_INFO_
{
- int fsuid;
- int fsgid;
+ kuid_t fsuid;
+ kgid_t fsgid;
mm_segment_t fs;
} OS_FS_INFO;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment