Ralink rt2870 working but no WPA

I’ve compiled and installed a driver for a TP-Link TL-WDN3200 from the instructions at http://linuxforums.org.uk/index.php?topic=11154.msg91009#msg91009. I am happy to say the compile worked (first one I’ve ever done, yay!) and the adapter is working, but only for WEP or an unprotected connection.

The OS is LinuxMint 15 on an eeepc 1000H netbook. The router is a Netgear dual band with all the bells and whistles.

I have seen a few posts stating a problem with WPA for this chipset using Linux, but no clear way to fix it. The code was compiled with wpa_supplicant activated.

Output of dpkg -l | grep

ii wpasupplicant 1.0-3ubuntu1 i386 client support for WPA and WPA2 (IEEE 802.11i)

Output of lshw -C network

*-network
description: Wireless interface
physical id: 1
logical name: ra0
serial: (whatever)
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN ip=192.168.0.8 multicast=yes wireless=Ralink STA

Output of iwconfig

ra0 Ralink STA ESSID:“hidden” Nickname:“RT2870STA”
Mode:Managed Frequency=2.462 GHz Access Point: (hidden)
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-55 dBm Noise level:-79 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Anyone been able to deal with this problem? Thx in advance.

Hi eightwt, and welcome to the forum :slight_smile:

Can you post the output from:

lsusb

[EDIT]

Can you also give me a link to the driver source code you downloaded

and the output from:

uname -a

Thanks for responding.

lsusb:
Bus 001 Device 005: ID 148f:5572 Ralink Technology, Corp.
Bus 001 Device 002: ID 058f:6335 Alcor Micro Corp. SD/MMC Card Reader
Bus 001 Device 003: ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC Webcam / CNF7129
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 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

uname -a:
Linux deck 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33 UTC 2013 i686 i686 i686 GNU/Linux

driver source:
https://dl.dropboxusercontent.com/u/11876059/DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.gz

I believe you uploaded this source code.

Let’s try the backported rt2800usb drivers ?

run these commands in sequence:

mkdir ~/wireless-backports

then

cd ~/wireless-backports

then

wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.12/backports-3.12-1.tar.gz

then

tar xvf backports-3.12-1.tar.gz

then

cd ~/wireless-backports/backports-3.12-1

then

make defconfig-wifi

then

make

if that last commande doesn’t error out, then

sudo make install

then REBOOT.

Hopefully the system will automatically load the updated rt2800usb driver (which now contains your cards ID strings) … but if rt5572sta is still being loaded, run:

sudo modprobe -r rt5572sta

then

sudo modprobe rt2800usb

Does wireless still work, and does it now work with WPA ?

and let me know if you had to run those last 2 commands … as we may need to blacklist it.

That original tar looks ancient (might not work properly with current kernels - although I’d have thought it would fail to compile)

The OS is LinuxMint 15 on an eeepc 1000H netbook.

Any particular reason for not using the bult in WiFi on the eeepc?

I removed that internal card and replaced it with a dual band card that actually worked right out of the box. I’m just fooling around with this external adapter because I don’t like being told that things don’t work in Linux!! And I’m retired with lots of time on my hands.

If you wish, try my instructions … your vendor:product ID strings (148f:5572) were added to the rt2800usb driver in later kernels … the backport should work.

Yes, I had to run the last two commands. And IT WORKS!!!
Then I blacklisted the rt5572sta driver. Now please tell me what it is I did. ;D

BTW, I suppose I can delete the /etc/Wireless/RT5572STA/RT5572STA.dat file as well.

Thanks so much Mark. Even though I ended up not using it, this is the first time I’ve successfully compiled anything in Linux.

Geoff

Yes, I had to run the last two commands. And IT WORKS!!! Then I blacklisted the rt5572sta driver.

So it now works at boot … you don’t require further assistance ?

Now please tell me what it is I did. ;D

You just installed the wireless drivers for the 3.12 kernel … your system now uses these in precedence over its default drivers.

BTW, I suppose I can delete the /etc/Wireless/RT5572STA/RT5572STA.dat file as well.

Yeah, but the easiest way to uninstall the rt5572sta drivers would be to enter the source directory (if you still have it) and run:

sudo make uninstall

but it won’t hurt to leave it either.

Thanks so much Mark. Even though I ended up not using it, this is the first time I've successfully compiled anything in Linux.

You’re most welcome … feels good dunnit :slight_smile:

Yes, it installs when I plug the adapter in. Kinda cool. And I’m uninstalling the old stuff now.

Yup, it feels real good.

In which case, you should try running Arch :stuck_out_tongue:

Howdy,

I meet the next error:

wim32@wim32 ~/wireless-backports/backports-3.12-1 $ make defconfig-wifi
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
| make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn’t currently running.)
--
make: *** [defconfig-wifi] Error 1

Is there anybody to give me some tips to solve these error.

I’m trying to install the wifi adapter EM 4586 (dual-band)

regards

Spidey-Westland

try installing the kernel headers:

sudo apt-get install linux-headers generic

That should be:

sudo apt-get install linux-headers-generic

“generic” isn’t a seperate package :stuck_out_tongue:

Actually, run this first (if you haven’t already):

sudo apt-get install build-essential

Ooops, typo :-[

OK, run:

sudo apt-get install build-essential linux-headers-generic

@ Mark,

I have install the headers

But now see i the next fatal message

wim32@wim32 ~ $ sudo modprobe -r rt5572sta
[sudo] password for wim32:
FATAL: Module rt5572sta not found.

Doe you have a new tip?

It’s not so important that command fails … the important part is that the backports built and installed properly, and that wireless springs to life when you run:

sudo modprobe rt2800usb

did they build/install properly ?

What’s the output from:

modinfo rt2800usb

and

lsusb

Howdy all,

Yes, the wifi adapter is running.

Thanx for the info.

I’ll writing a document with these tips for our Linux-Mint 13 users in my city.

I see after shutdown the desktop and restart after 2 hours that de wifi -adapter not start.

In terminal run

modinfo rt2800usb

and now start the wifi adapter.
Is there tip to start these automato.

regards

Spidey-Westland

You’re most welcome :slight_smile: