RT2870 can't get compiled drivers to work

I have been searching through the forums and looked at this SDB:ASUS WL-160N USB Wireless Adapter - openSUSE and I am still having problems getting my ralink rt2870 wireless adapter working.

I compiled the driver from source and when I tried to use insmod it said rt2870sta.ko already exists. So I thought it should be working. I did an lsmod to see if it had started up and rt2870sta showed up as having been loaded, however so did rt2800usb rt2x00usb and rt2x00lib. I have tried starting up the computer with these blacklisted but that didn’t help anything. As of now the rt2800usb seems to be controlling my wireless card. Using iwconfig the chip shows up as wlan0 instead of ra0 but iwlist scan appears to be working although my network isn’t showing up. I have copied RT28670STA.dat to /etc/Wireless/RT2870STA/RT2870STA.dat and configured it as well. Running lsusb the chip shows up as simply Linksys (it is a linksys adapter with ralink chipset). If anyone could help it would be greatly appreciated. Thanks.

Sam

If you want help, you should read the stickies and provide the information
requested. In particular, we need the USB IDs produced by the lsusb command.

lsusb gives the following
Bus 001 Device 005: ID 1737:0071 Linksys

and dmesg gives this information
141.631023] usb 1-1: new high speed USB device using ehci_hcd and address 5
141.777127] usb 1-1: New USB device found, idVendor=1737, idProduct=0071
141.777137] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
141.777144] usb 1-1: Product: Dual-Band Wireless-N USB Network Adapter
141.777154] usb 1-1: Manufacturer: Cisco-Linksys LLC
141.777255] usb 1-1: configuration #1 chosen from 1 choice
141.813200] phy1: Selected rate control algorithm ‘minstrel’
141.813743] Registered led device: rt2800usb-phy1::radio
141.813761] Registered led device: rt2800usb-phy1::assoc
141.813775] Registered led device: rt2800usb-phy1::quality
146.096963] rt2800usb 1-1:1.0: firmware: requesting rt2870.bin
146.265059] ADDRCONF(NETDEV_UP): wlan0: link is not ready

On 01/07/2010 09:26 PM, samsnotunix wrote:
> 141.813775] Registered led device: rt2800usb-phy1::quality
> 146.096963] rt2800usb 1-1:1.0: firmware: requesting rt2870.bin
> 146.265059] ADDRCONF(NETDEV_UP): wlan0: link is not ready

OK, the firmware is available.

What is supposed to be in /etc/Wireless/RT2870STA/RT2870STA.dat? I’m not
familiar with this particular card.

Are you intending to use NetworkManager or ifup? Have you configured it with
that tool?

If you are using ifup, you need to issue the command ‘sudo /sbin/ifup wlan0’.

Now issue the command ‘sudo /usr/sbin/iwlist scan’. Post the output.

iwlist scan prints
wlan0 No scan results

Usually when my usb adapter is working it has an led that blinks and that led has not been blinking.

On 01/07/2010 11:06 PM, samsnotunix wrote:
>
> iwlist scan prints
> wlan0 No scan results
>
> Usually when my usb adapter is working it has an led that blinks and
> that led has not been blinking.

What about the other questions I asked?

I got it working thanks

Good to hear that you solved it.

I’ve got a similar problem with rt2870 (Opensuse 11.2 x86_64) using Belkin N USB wireless stick (F50853 v.4). Could you please let us know how you solved the problem?

Cheers

First there is this repo: download.opensuse.org/repositories/driver:/wireless/openSUSE_11.2/ add that to your software list yast->software repositories-> add -> specify URL -> past that into the box and give it some name. This Repo contains a package called ralink firmware. Install that. Second from the accounts I’ve heard from other users there is some glitch in the 2.6.31.8 kernel affecting the ralink rt2860/2870 wireless chipsets causing the system to lock when you try to connect to the internet. Downgrading to 2.6.31.5 seems to fix the problem. yast->software management-> search for kernel -> click on kernel-desktop -> down at the bottom there is a tab labeled versions click on that -> select the 2.6.31.5 option. -> Accept-> resolve any issues by telling yast to downgrade your kernel related packages if necessary-> go back into software management-> Search for kernel again-> select kernel desktop ->right click and in the menu select protected do not modify. When a version newer than 2.6.31.8 comes out you can try again with that kernel by going back into software management and locating the kernel and selecting update.

I have the impression you need to add the updates separately to the list of repositories to get updates for the drivers:
Index of /repositories/driver:/wireless/11.2-update

I have got the Belkin F5D8053 N working with ndiswrapper, like the folowing procedure

Install ndiswrapper
Blacklist the native drivers in /etc/modprobe.d/blacklist.conf
add these lines

blacklist rt2800usb
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2870sta
blacklist rt3070sta

You need the firmware rt2870.inf and rt2870.sys from your installation cd

Load the ndis firmware with
ndiswrapper -i rt2879.inf
ndiswrapper -m

in yast2 System/sysconfig editor ->system -> kernel ->modules load on boot, add ndiswrapper

Works also for WPA2PSK