Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘IEEE80211_NUM_BANDS’ undeclared #55

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif
# rt8592(for rt85592), mt7650e, mt7630e, mt7610e, mt7650u, mt7630u, mt7610u

ifeq ($(CHIPSET),)
CHIPSET = mt7650u mt7630u mt7610u
CHIPSET = mt7610u
endif

MODULE = $(word 1, $(CHIPSET))
Expand All @@ -33,6 +33,7 @@ RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(MODULE)

#PLATFORM: Target platform
PLATFORM = PC
#PLATFORM = RASP
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
Expand Down Expand Up @@ -105,6 +106,13 @@ MODULE = $(shell pwd | sed "s/.*\///" ).o
export MODULE
endif

ifeq ($(PLATFORM),RASP)
LINUX_SRC = ~/raspi_cross/kernel
CROSS_COMPILE = ~/raspi_cross/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
CROSS_COMPILE_INCLUDE = ~/raspi_cross/mt7610u_wifi_sta_v3002_dpo_20130916/include
endif


ifeq ($(PLATFORM),5VT)
LINUX_SRC = /home/ralink-2860-sdk-5vt-distribution/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
Expand Down Expand Up @@ -136,6 +144,8 @@ CROSS_COMPILE = /home/snowpin/armutils_2.5.120.1/toolchain/bin/arm-elf-
CROSS_COMPILE_INCLUDE = /home/snowpin/armutils_2.5.120.1/toolchain/lib/gcc-lib/arm-elf/2.95.3
endif



ifeq ($(PLATFORM),INIC)
UCOS_SRC = /opt/uCOS/iNIC_rt2880
CROSS_COMPILE = /usr/bin/mipsel-linux-
Expand Down Expand Up @@ -422,7 +432,7 @@ ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_apsta_net.ko /tftpboot
endif
else
cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta.ko /tftpboot 2>/dev/null || :
# cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta.ko /tftpboot 2>/dev/null || :
ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta_util.ko /tftpboot 2>/dev/null || :
cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta_net.ko /tftpboot 2>/dev/null || :
Expand Down Expand Up @@ -534,4 +544,3 @@ endif
.PHONY: $(PHONY)



43 changes: 41 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,59 @@
#changelog 2016-04-04
1. theoretically supported products (common/rtusb_dev_id.c):
* {USB_DEVICE(0x148F,0x7610)}, /* MT7610U Ralink VID */
* {USB_DEVICE(0x0E8D,0x7610)}, /* MT7610U MediaTek VID / Sabrent NTWLAC */
* {USB_DEVICE(0x13B1,0x003E)}, /* Cisco Linksys AE6000 */
* {USB_DEVICE(0x7392,0xA711)}, /* Edimax 7711ULC/7711MAC */
* {USB_DEVICE(0x7392,0xB711)}, /* Elecom WDC-433SU2M */
* {USB_DEVICE(0x148F,0x761A)}, /* TP-LINK Archer T2U(H) (tested, working) */
* {USB_DEVICE(0x148F,0x760A)}, /* TP-LINK */
* {USB_DEVICE(0x0B05,0x17D1)}, /* ASUS USB-AC51 */
* {USB_DEVICE(0x0B05,0x17DB)}, /* ASUS USB-AC50 */
* {USB_DEVICE(0x0DF6,0x0075)}, /* Edimax EW-7811UTC AC600 / Sitecom WLA-3100 */
* {USB_DEVICE(0x2001,0x3D02)}, /* D-Link DWA-171 rev B1 */
* {USB_DEVICE(0x0586,0x3425)}, /* ZyXEL NWD6505 */
* {USB_DEVICE(0x07B8,0x7610)}, /* AboCom AU7212 */
* {USB_DEVICE(0x04BB,0x0951)}, /* IO DATA WN-AC433UK */
* {USB_DEVICE(0x057C,0x8502)}, /* AVM FRITZ!WLAN USB Stick AC 430 (not working) */
* {USB_DEVICE(0x293C,0x5702)}, /* Comcast Xfinity KXW02AAA */
* {USB_DEVICE(0x2019,0xAB31)}, /* Planex GW-450D/GW-450D-KATANA */
* {USB_DEVICE(0x20F4,0x806B)}, /* TRENDnet TEW-806UBH AC600 */
2. rt_linux.c: RtmpOSFileRead/RtmpOSFileWrite
* osfd->f_op->read/vfs_read Kernel 4.x
3. fixes from https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes

# mt7610u_wifi_sta_v3002_dpo_20130916
Modified usb wifi driver for TP_link TL-WDN5200 on Linux.
Modified usb wifi driver for TP-Link TL-WDN5200 AC600 T2U and Cisco Linksys AE6000 / AC580 on Linux.
1. modified: common/rtusb_dev_id.c
* add product id for TL-WDN5200
* add product id for Cisco Linksys AE6000 / AC580
1. modified: include/os/rt_linux.h
1. modified: os/linux/rt_linux.c
* fix compile error from struct _OS_FS_INFO_
* fix problem on 64bit
1. modified: os/linux/config.mk
* change default setting for Ubuntu
1. modified common/cmm_info.c
* fix compile with gcc 4.9.2 newer Kernel (Ubuntu 15.04)

#prepare
Ubuntu: sudo apt-get install git build-essential

# how to use
```
$ mkdir ~/src
$ cd ~/src
$ git clone https://github.com/Myria-de/mt7610u_wifi_sta_v3002_dpo_20130916.git
$ make
$ make install
$ cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
$ reboot
```
refer to: http://hprath.com/2014/06/cisco-linksys-ae6000-ac580-media-tek-mt7610u-mt7630u-mt7650u-linux-x64-driver-patch/
refer to:
http://hprath.com/2014/06/cisco-linksys-ae6000-ac580-media-tek-mt7610u-mt7630u-mt7650u-linux-x64-driver-patch/
On this page you'll find also details about configuration in RT2870STA.dat.

https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916 (TP-Link T2U)



6 changes: 3 additions & 3 deletions RT2870STA.dat
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ CountryRegion=5
CountryRegionABand=7
CountryCode=
ChannelGeography=1
SSID=11n-AP
SSID=11n-ac-AP
NetworkType=Infra
WirelessMode=5
WirelessMode=13
EfuseBufferMode=0
Channel=0
BeaconPeriod=100
Expand All @@ -17,7 +17,7 @@ RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
Expand Down
2 changes: 1 addition & 1 deletion chips/mt76x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ static VOID NICInitMT76x0RFRegisters(RTMP_ADAPTER *pAd)
E2: B0.R21<0>: xo_cxo<0>, B0.R22<7:0>: xo_cxo<8:1>
*/
RFValue = (UCHAR)(pAd->RfFreqOffset & 0xFF);
RFValue = min(RFValue, 0xBF); /* Max of 9-bit built-in crystal oscillator C1 code */
RFValue = min(RFValue, (UCHAR)0xBF); /* Max of 9-bit built-in crystal oscillator C1 code */
rlt_rf_write(pAd, RF_BANK0, RF_R22, RFValue);

rlt_rf_read(pAd, RF_BANK0, RF_R22, &RFValue);
Expand Down
2 changes: 1 addition & 1 deletion common/cmm_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ INT Set_DriverVersion_Proc(

#ifdef CONFIG_STA_SUPPORT
IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
DBGPRINT(RT_DEBUG_TRACE, ("Driver version-%s %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__));
DBGPRINT(RT_DEBUG_TRACE, ("Driver version-%s %s\n", STA_DRIVER_VERSION, STA_DRIVER_BUILD));
#endif /* CONFIG_STA_SUPPORT */

return TRUE;
Expand Down
2 changes: 2 additions & 0 deletions common/cmm_mac_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#ifdef RTMP_MAC_USB

#define usb_buffer_alloc(a, b, c, d) usb_alloc_coherent(a, b, c, d)
#define usb_buffer_free(a, b, c, d) usb_free_coherent(a, b, c, d)

#include "rt_config.h"

Expand Down
Loading