Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save mamemomonga/d15c70f8b8e315ecdede to your computer and use it in GitHub Desktop.

Select an option

Save mamemomonga/d15c70f8b8e315ecdede to your computer and use it in GitHub Desktop.
mt7610u_wifi_sta_v3002_dpo_20130916 patch for Planex GW-450d
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/Makefile mt7610u_wifi_sta_v3002_dpo_20130916/Makefile
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/Makefile 2013-09-16 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/Makefile 2015-01-18 18:01:21.657950330 +0900
***************
*** 14,20 ****
# rt8592(for rt85592), mt7650e, mt7630e, mt7610e, mt7650u, mt7630u, mt7610u
ifeq ($(CHIPSET),)
! CHIPSET = mt7650u mt7630u mt7610u
endif
MODULE = $(word 1, $(CHIPSET))
--- 14,20 ----
# rt8592(for rt85592), mt7650e, mt7630e, mt7610e, mt7650u, mt7630u, mt7610u
ifeq ($(CHIPSET),)
! CHIPSET = mt7610u
endif
MODULE = $(word 1, $(CHIPSET))
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/RT2870STA.dat mt7610u_wifi_sta_v3002_dpo_20130916/RT2870STA.dat
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/RT2870STA.dat 2013-09-16 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/RT2870STA.dat 2015-01-18 17:58:23.072800236 +0900
***************
*** 1,10 ****
#The word of "Default" must not be removed
Default
CountryRegion=5
! CountryRegionABand=7
! CountryCode=
ChannelGeography=1
! SSID=11n-AP
NetworkType=Infra
WirelessMode=5
EfuseBufferMode=0
--- 1,10 ----
#The word of "Default" must not be removed
Default
CountryRegion=5
! CountryRegionABand=1
! CountryCode=JP
ChannelGeography=1
! SSID=
NetworkType=Infra
WirelessMode=5
EfuseBufferMode=0
***************
*** 19,26 ****
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
! AuthMode=OPEN
! EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
--- 19,26 ----
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
! AuthMode=WPA2
! EncrypType=AES
WPAPSK=
DefaultKeyID=1
Key1Type=0
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/common/rtmp_init.c mt7610u_wifi_sta_v3002_dpo_20130916/common/rtmp_init.c
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/common/rtmp_init.c 2013-09-16 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/common/rtmp_init.c 2015-01-18 17:59:25.471804458 +0900
***************
*** 3065,3071 ****
{
pObj->pRscObj = pRsc;
insertTailList(pRscList, (LIST_ENTRY *)pObj);
! DBGPRINT(RT_DEBUG_ERROR, ("%s: add timer obj %lx!\n", __FUNCTION__, (ULONG)pRsc));
}
}
--- 3065,3071 ----
{
pObj->pRscObj = pRsc;
insertTailList(pRscList, (LIST_ENTRY *)pObj);
! DBGPRINT(RT_DEBUG_TRACE, ("%s: add timer obj %lx!\n", __FUNCTION__, (ULONG)pRsc));
}
}
diff -cr 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 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/common/rtusb_dev_id.c 2015-01-18 17:57:16.917855953 +0900
***************
*** 36,41 ****
--- 36,42 ----
/* module table */
USB_DEVICE_ID rtusb_dev_id[] = {
#ifdef MT76x0
+ {USB_DEVICE(0x2019,0xab31)}, /* GW-450D */
{USB_DEVICE(0x148F,0x7610)}, /* MT7610U */
{USB_DEVICE(0x0E8D,0x7610)}, /* MT7610U */
{USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7630, 0xff, 0x2, 0xff)}, /* MT7630U */
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/include/os/rt_linux.h mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/include/os/rt_linux.h 2013-09-16 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h 2015-01-18 17:57:16.937855634 +0900
***************
*** 277,284 ****
typedef struct _OS_FS_INFO_
{
! int fsuid;
! int fsgid;
mm_segment_t fs;
} OS_FS_INFO;
--- 277,284 ----
typedef struct _OS_FS_INFO_
{
! kuid_t fsuid;
! kgid_t fsgid;
mm_segment_t fs;
} OS_FS_INFO;
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig/include/rtmp_comm.h mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig/include/rtmp_comm.h 2013-09-16 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h 2015-01-18 18:00:53.554398814 +0900
***************
*** 84,94 ****
/* */
/* Debug information verbosity: lower values indicate higher urgency */
/* */
! #define RT_DEBUG_OFF 0
#define RT_DEBUG_ERROR 1
#define RT_DEBUG_WARN 2
! #define RT_DEBUG_TRACE 3
! #define RT_DEBUG_INFO 4
#define RT_DEBUG_LOUD 5
typedef enum{
--- 84,94 ----
/* */
/* Debug information verbosity: lower values indicate higher urgency */
/* */
! #define RT_DEBUG_OFF 5
#define RT_DEBUG_ERROR 1
#define RT_DEBUG_WARN 2
! #define RT_DEBUG_TRACE 5
! #define RT_DEBUG_INFO 5
#define RT_DEBUG_LOUD 5
typedef enum{
diff -cr 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 23:03:08.000000000 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/config.mk 2015-01-18 17:57:16.953855379 +0900
***************
*** 23,34 ****
# Support Wpa_Supplicant
# i.e. wpa_supplicant -Dralink
! HAS_WPA_SUPPLICANT=n
# Support Native WpaSupplicant for Network Maganger
# i.e. wpa_supplicant -Dwext
! HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
#Support Net interface block while Tx-Sw queue full
HAS_BLOCK_NET_IF=n
--- 23,34 ----
# Support Wpa_Supplicant
# i.e. wpa_supplicant -Dralink
! HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
# i.e. wpa_supplicant -Dwext
! HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
#Support Net interface block while Tx-Sw queue full
HAS_BLOCK_NET_IF=n
diff -cr mt7610u_wifi_sta_v3002_dpo_20130916.orig2/Makefile mt7610u_wifi_sta_v3002_dpo_20130916/Makefile
*** mt7610u_wifi_sta_v3002_dpo_20130916.orig2/Makefile 2015-02-18 23:08:38.549163629 +0900
--- mt7610u_wifi_sta_v3002_dpo_20130916/Makefile 2015-02-18 23:10:47.369165976 +0900
***************
*** 196,206 ****
ifeq ($(PLATFORM),PC)
# Linux 2.6
! LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
! LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
! CROSS_COMPILE =
endif
ifeq ($(PLATFORM),INTELP6)
--- 196,206 ----
ifeq ($(PLATFORM),PC)
# Linux 2.6
! #LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
! #LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
! #CROSS_COMPILE =
endif
ifeq ($(PLATFORM),INTELP6)
#!/bin/sh -x
echo 'mt7650u_sta' >> /etc/modules
mkdir -p /etc/Wireless/RT2870STA
cp RT2870STA.dat /etc/Wireless/RT2870STA
cp os/linux/mt7610u_sta.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
depmod -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment