Author Topic: Ralink RT2870 based USB Wireless N adapters (Ubuntu)  (Read 215467 times)

Rich J and 1 Guest are viewing this topic.

Offline fishfinger

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #195 on: January 21, 2013, 05:51:11 pm »
I have problem with ASUS n-11 USB, instal driver was successful (make and install - no error) but nothing happen when i put wifi in USB.

ubuntu 12.04

Code: [Select]
sudo lsmod | grep rt28
rt2870sta             570836  0
mediacenter@mediacenter-xbmc:~$

Code: [Select]
iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Code: [Select]
sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168B PCI Express Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 03
       serial: 20:cf:30:f2:df:c6
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168d-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:41 ioport:e800(size=256) memory:f8fff000-f8ffffff memory:f8ff8000-f8ffbfff memory:fbff0000-fbffffff

Code: [Select]
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse
Bus 002 Device 002: ID 14cd:6600 Super Top USB 2.0 IDE DEVICE
Bus 002 Device 003: ID 1058:0706 Western Digital Technologies, Inc.
Bus 004 Device 002: ID 0bc7:0006 X10 Wireless Technology, Inc. Wireless Transceiver (ACPI-compliant)
Bus 002 Device 007: ID 1761:0b05 ASUSTek Computer, Inc. (wrong ID) 802.11n Network Adapter (wrong ID - swapped vendor and device)

What`s  wrong?

Offline Mad Penguin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 10018
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #196 on: January 21, 2013, 05:58:10 pm »
Mmm, it's looking a bit like that driver doesn't support your particular network card ... however;

Take a look at;

Code: [Select]
common/rtusb_dev_id.c
Try adding;

Code: [Select]
{USB_DEVICE(0x1761,0x0B05)}, 
To the list of recognised devices, then recompile, rmmod, insmod, and try again ...

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17275
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #197 on: January 21, 2013, 06:05:33 pm »
Any particular reason you're not using rt2800usb which contains that VENDOR:DEVICE ID string:-

Quote
alias:          usb:v1761p0B05d*dc*dsc*dp*ic*isc*ip*

What happens if you run:
Code: [Select]
sudo modprobe -r rt2870sta
then
Code: [Select]
sudo modprobe rt2800usb

Does Wireless spring to life ?
« Last Edit: January 21, 2013, 06:15:45 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline fishfinger

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #198 on: January 21, 2013, 08:29:05 pm »
Quote
Take a look at;

Code: [Select]

common/rtusb_dev_id.c

Try adding;

Code: [Select]

{USB_DEVICE(0x1761,0x0B05)},

To the list of recognised devices, then recompile, rmmod, insmod, and try again ...

BIG THX - asus n-11 USB - its live



Quote
Any particular reason you're not using rt2800usb which contains that VENDOR:DEVICE ID string:-
wifi is suspended after 20 minutes and I have to reset the device to re-work...

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #199 on: April 29, 2014, 06:27:06 pm »
Hello,
I try to install a rt2870sta driver a 4th day (I am newbie in Linux) and its still not working, fully desperated I decided to ask you whats wrong. I read steps written here but nothing helped me. This is output what i get

Code: [Select]
root@cataleyo:/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1# make && make install
make -C tools
make[1]: Entering directory `/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/2.6.32-25-generic/build SUBDIRS=/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make: *** /lib/modules/2.6.32-25-generic/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2

uname -a output:
Code: [Select]
Linux cataleyo 2.6.32-25-generic #44-Ubuntu i686 GNU/Linux


its NodeZero linux

I was trying this drivers:
2009_0302_RT2870_Linux_STA_v2.1.0.0
2010_0709_RT2870_Linux_STA_v2.4.0.1

also tried this commands to edit:
Code: [Select]
make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17275
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #200 on: April 29, 2014, 06:41:59 pm »
This line:
make: *** /lib/modules/2.6.32-25-generic/build: No such file or directory.  Stop.
suggests you don't have the kernel headers for your kernel installed

Run a full system update.

then REBOOT

then make sure you have build-essential and linux-headers-generic installed:
Code: [Select]
sudo apt-get install build-essential linux-headers-generic
any errors from that command, post them here .. if not, carry on below

then try building 2.4.0.1 again without making any edits
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #201 on: May 01, 2014, 02:01:40 pm »
system update was smoothly, driver install also I did all steps without the edit section and after reboot the output from iwconfig was:

Code: [Select]
cataleyo@cataleyo:~$ iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

vboxnet0  no wireless extensions.

pan0      no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

and lsmod
Code: [Select]
sudo lsmod | grep rt28  
rt2800usb              31531  0
rt2x00usb               9639  1 rt2800usb
rt2x00lib              27573  2 rt2800usb,rt2x00usb
crc_ccitt               1339  1 rt2800usb
rt2870sta             556845  0

but I cant see any networks, I tried network manager and also the airodump-ng with monitoring mode

but after edit of blacklist.conf by rt2800usb output is
rt2870sta             556845  0

and iwconfig

Code: [Select]
iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

vboxnet0  no wireless extensions.

pan0      no wireless extensions.

Code: [Select]
sudo lshw -C network 
  *-network UNCLAIMED     
       description: Network controller
       product: Broadcom Corporation
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:07:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:80400000-80403fff
  *-network
       description: Ethernet interface
       product: AR8131 Gigabit Ethernet
       vendor: Atheros Communications
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: c0
       serial: c8:0a:a9:c6:81:7e
       capacity: 1GB/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.0.1-NAPI firmware=N/A latency=0 link=no multicast=yes port=twisted pair
       resources: irq:29 memory:80800000-8083ffff ioport:4000(size=128)
  *-network DISABLED
       description: Ethernet interface
       physical id: 2
       logical name: vboxnet0
       serial: 0a:00:27:00:00:00
       capabilities: ethernet physical
       configuration: broadcast=yes multicast=yes
« Last Edit: May 01, 2014, 03:02:38 pm by Cataleyo »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17275
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #202 on: May 01, 2014, 04:12:01 pm »
Erm .. I'm not sure you need the Ralink drivers at all .. you seem to have a Broadcom adapter

What's the output from:
Code: [Select]
lsusb
and
Code: [Select]
lspci -vnn | grep -i net
?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #203 on: May 01, 2014, 04:46:22 pm »
yes I have Broadcom also, but working on ralink first bc. of distance to acess point

Code: [Select]
lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0489:e011 Foxconn / Hon Hai
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 148f:3070 Ralink Technology, Corp.
Bus 002 Device 003: ID 04f2:b044 Chicony Electronics Co., Ltd
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: [Select]
lspci -vnn | grep -i net
07:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:4357] (rev 01)
09:00.0 Ethernet controller [0200]: Atheros Communications AR8131 Gigabit Ethernet [1969:1063] (rev c0)

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17275
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #204 on: May 01, 2014, 05:08:11 pm »
Your adapter requires the rt3070sta driver, not rt2870sta

With an active (wired) internet connection run these commands in sequence:
Code: [Select]
mkdir ~/rt3070sta
then
Code: [Select]
cd ~/rt3070sta
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
then
Code: [Select]
tar xjvf 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
then
Code: [Select]
cd ~/rt3070sta/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO
then
Code: [Select]
sudo su
then
Code: [Select]
make
then
Code: [Select]
make install
then
Code: [Select]
exit
then
Code: [Select]
sudo modprobe -r rt2870sta
then
Code: [Select]
sudo modprobe rt3070sta
did wireless spring to life ?
« Last Edit: May 01, 2014, 05:10:30 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #205 on: May 01, 2014, 05:46:16 pm »
many thanks to you, wifi working well :)

ps. just dont got it why producer gives 2870 driver for this card :D

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17275
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #206 on: May 01, 2014, 06:48:40 pm »
You're most welcome :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline aspivak

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #207 on: May 09, 2014, 12:33:35 am »
Hi friends just made all the steps didn't worked for me

running Kali on vmware

my lsusb
Quote
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
lspci -vnn | grep -i net
Quote
02:01.0 Ethernet controller [0200]: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [8086:100f] (rev 01)

iwconfig
Quote
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on




got some errors after running make


Quote
make -C tools
make[1]: Entering directory `/root/RT3070/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/RT3070/tools'
/root/RT3070/tools/bin2h
cp -f os/linux/Makefile.6 /root/RT3070/os/linux/Makefile
make -C /lib/modules/3.12-kali1-amd64/build SUBDIRS=/root/RT3070/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.12-kali1-amd64'
  CC [M]  /root/RT3070/os/linux/../../os/linux/rt_linux.o
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:498:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/dynamic_debug.h:111,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/kernel.h:14,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/cache.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/time.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/module.h:10,
                 from /root/RT3070/include/os/rt_linux.h:31,
                 from /root/RT3070/include/rtmp_os.h:44,
                 from /root/RT3070/include/rtmp_comm.h:60,
                 from /root/RT3070/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c:500:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/dynamic_debug.h:111,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/kernel.h:14,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/cache.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/time.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/module.h:10,
                 from /root/RT3070/include/os/rt_linux.h:31,
                 from /root/RT3070/include/rtmp_os.h:44,
                 from /root/RT3070/include/rtmp_comm.h:60,
                 from /root/RT3070/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:652:20: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:671:2: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:698:15: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:1126:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c:1127:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
make[4]: *** [/root/RT3070/os/linux/../../os/linux/rt_linux.o] Error 1
make[3]: *** [_module_/root/RT3070/os/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
make: *** [LINUX] Error 2

Offline chemicalfan

  • Hero Member
  • *****
  • Posts: 1166
  • Karma: 36
  • Gender: Male
  • I've been here a little while!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #208 on: May 09, 2014, 08:56:51 am »
Don't know why make failed, but the procedure will be different for a VM.
What is the host CPU & OS? Do you have the guest extensions installed (if applicable - I'm only familar with Virtualbox myself)?

Offline alemaratv

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #209 on: June 29, 2017, 07:54:56 pm »
BE AWARE
For kernels >= 2.6.35 make sure you read the the EDIT.

If you want to know which kernel you are using, open a terminal and enter:
Code: [Select]
uname -r
(if it's greater than, or equal to 2.6.35, be sure to follow the instructions in the EDIT.



In Ubuntu 9.10 (Karmic), Ubuntu 10.04 (Lucid), and Ubuntu 10.10 (Maverick) there is an issue with USB Wireless N adapters based on the Ralink RT2870 chip.
The issue seems to be that 2 (conflicting?) driver modules are loaded... rt2870sta and rt2800usb... resulting in no wireless access.

The solution is to blacklist the rt2800usb module if it is loaded.

To see if they are both loaded, enter this in a terminal:
Code: [Select]
sudo lsmod | grep rt28
if they are both loaded, blacklist the rt2800usb module by opening the /etc/modprobe.d/blacklist.conf file (as root)
Code: [Select]
sudo gedit /etc/modprobe.d/blacklist.conf

and add the line:

blacklist rt2800usb

then save the file and reboot.

If after rebooting you can now 'see' the network, but it will not accept a WPA key (WEP seems fine)... you need to recompile the driver with WPA support... the driver can be found here:

2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 (you can enter 'any' name and email)
or
Ralink Linux Driver Page
(HINT - change the files extension to tar.gz before unpacking... for some reason it comes up as an invalid bz2 archive, but unpacks properly as a tar.gz)

Before compiling - you are going to need to install build-essential, and linux-headers-generic.
Code: [Select]
sudo apt-get update && sudo apt-get install build-essential linux-headers-generic

If you use WPA/WPA2 encryption, you will have to change the lines
HAS_WPA_SUPPLICANT=n
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

in:
/os/linux/config.mk
(inside the unpacked driver)

to
HAS_WPA_SUPPLICANT=y
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Once you have changed these to =y and saved the config.mk file...

[EDIT]
Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 .. so if during the next (make && make install) step it fails with this error:

Quote
make[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
make: *** [LINUX] Error 2

or similar.

The fix is to cd to the driver source directory (eg. 2010_0709_RT2870_Linux_STA_v2.4.0.1), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:

Code: [Select]
make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"
(hitting enter after each line)

Or, I've uploaded a pre-modified version of the driver that WILL compile on kernels >= 2.6.35 here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2

Then carry on with the "sudo su" and "make && make install", as per the instructions below.
[END EDIT]

To compile and install, open a terminal and enter:
Code: [Select]
sudo su
make && make install
It is important here not to use "sudo" alone, but "sudo su" because with sudo for some reason the installation script fails to create the necessary files and folders.

Now, while still root modprobe the driver module:
Code: [Select]
modprobe rt2870sta

Give it a minute to create the ra0 device node, and network manager should now be able to display all visible wireless networks in your area, meanwhile you can stop being root.
Code: [Select]
exit

Make sure that ra0 is up and running as it's supposed to:
Code: [Select]
iwconfig

and check for a section similar to:
Quote
ra0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


To make sure the module is loaded after a reboot, add it to the /etc/modules file:
Code: [Select]
sudo sh -c 'echo rt2870sta >> /etc/modules'

Your wireless card should now be working (it may require a reboot first)... Use network manager to set your WEP/WPA(2) key, and connect to your network.



Further info can be found at the following URLs:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460323

http://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/

http://swiss.ubuntuforums.org/showthread.php?t=1382798


Hello everybody, I am stuck at the "make" stage, it end with
Code: [Select]
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c:6035:1: warning: the frame size of 1344 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: set di istruzioni per l'obiettivo "/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o" non riuscito
make[2]: *** [/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o] Errore 1
Makefile:1420: set di istruzioni per l'obiettivo "_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux" non riuscito
make[1]: *** [_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.4.0-83-generic"
Makefile:243: set di istruzioni per l'obiettivo "LINUX" non riuscito
make: *** [LINUX] Errore 2
even if I run those three commands.
What do you think I could do?
I am using an Edimax EW-7711UAn V2 on Ubuntu 16.04 64 bit and it works perfectly for a computer.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal