RT2500-based wireless G network card cannot be set or reset on 2.6.20-11

Bug #92742 reported by Ryan Stonecipher-Fisher
64
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Fix Released
Medium
Ben Collins

Bug Description

Binary package hint: linux-source-2.6.20

Steps to reproduce:

1) Have an RT2500-based pci wireless card
2) Boot the 2.6.20-11 kernel
3) Observe that a /etc/network/interfaces file that properly sets wireless mode, key, and ssid fails to completely setup the card
4) Note that "sudo invoke-rc.d networking restart" cannot reset the card parameters because the card is in some kind of limbo

/var/log/syslog log of trying to restart networking:

Mar 16 01:08:03 pythagoras avahi-daemon[4963]: Leaving mDNS multicast group on interface ra0.IPv4 with address 192.168.1.109.
Mar 16 01:08:03 pythagoras NetworkManager: <information>^IDeactivating device ra0.
Mar 16 01:08:03 pythagoras NetworkManager: <WARNING>^I nm_device_802_11_wireless_set_mode (): error setting card ra0 to Infrastructure mode: Device or resource busy

lshw output:

 *-network
                description: Wireless interface
                product: RT2500 802.11g Cardbus/mini-PCI
                vendor: RaLink
                physical id: 0
                bus info: pci@06:00.0
                logical name: ra0
                version: 01
                serial: 00:0f:66:6f:22:4a
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=RT2500STA driverversion=1.1.0 BETA4 ip=192.16
8.1.109 latency=32 multicast=yes wireless=RT2500 Wireless
                resources: iomemory:ff500000-ff501fff irq:21

Revision history for this message
funkadelic (funkadelic) wrote :

My Linksys WMP54Gv4.1 worked flawlessly in Feisty herd 4 (with roaming mode off) -- recent updates seem to break it.

Upon updating, my card is still detected in Admin>Network, but I no longer see "ra0" in network monitor and I can't connect.

Revision history for this message
Jan de Mooij (jandemooij) wrote :

I can confirm this bug.

I still have my ra0 device, but there is also a new wmaster0 device? I can't connect with both devices, previous kernel works fine.

Changed in linux-source-2.6.20:
status: Unconfirmed → Confirmed
Revision history for this message
Matt Vickers (mattyv) wrote :

Can confirm too. It appears that the driver used has changed between kernels, the legacy driver worked fine bar the Network Manager issue. We are now getting the rt2x00 driver for rt2500 cards, and probably others, have not found a way to connect yet.

Booting previous kernel (2.6.20-10.17) still works as before.

Comparison of modules loaded on boot are shown here.

[lsmod | grep rt --- 2.6.20-11]

rt2500pci 26240 0
rt2x00lib 11904 1 rt2500pci
mac80211 175364 3 rc80211_simple,rt2500pci,rt2x00lib
eeprom_93cx6 4352 1 rt2500pci
parport_pc 36388 1
parport 36936 3 ppdev,lp,parport_pc
agpgart 33480 1 ali_agp

[lsmod | grep rt --- 2.6.20-10]

rt2500 178276 1
parport_pc 36388 1
parport 36936 3 ppdev,lp,parport_pc
agpgart 33480 1 ali_agp

Revision history for this message
iKs (iks279) wrote :

I can confirm this bug too : 2.6.20-11 wont work. 2.6.20-10 works just fine !

Revision history for this message
funkadelic (funkadelic) wrote :

I just installed the daily build for 3-16...

I see two entries in Network - "wmaster0" and "wlan0" ... neither can detect any wireless networks, and manually tying in my essid does not work either.

No "ra0" in network monitor...

Revision history for this message
hyper_ch (bugs-launchpad-net-roleplayer) wrote :

I can confirm this bug. With 2.6.20-10 it works fine but not with 2.6.20-11.

I have Linksys Wmp54G v4.0 card.

00:0a.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)

hyper@xubi:/etc/modprobe.d$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.412 GHz
          RTS thr:off Fragment thr=2346 B

ra0 IEEE 802.11g ESSID:"HyperWAP"
          Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
          RTS thr:off Fragment thr=2346 B
          Link Quality:0 Signal level:0 Noise level:0
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

hyper@xubi:/etc/modprobe.d$ modinfo rt2500pci
filename: /lib/modules/2.6.20-11-generic/kernel/ubuntu/wireless/rt2x00/rt2500pci.ko
license: GPL
description: Ralink RT2500 PCI & PCMCIA Wireless LAN driver.
version: CVS
author: http://rt2x00.serialmonkey.com
srcversion: CB1A9F330479AFF351D667C
alias: pci:v00001814d00000201sv*sd*bc*sc*i*
depends: rt2x00lib,mac80211,eeprom_93cx6
vermagic: 2.6.20-11-generic SMP mod_unload 586
hyper@xubi:/etc/modprobe.d$

Revision history for this message
Joseph Price (pricechild) wrote :

Very odd... I have identical chips in two machines. One is affected by this and the other isn't.

Revision history for this message
aent (aent) wrote :

I have this problem too on a belkin card that used to use rt2500... I get a wlan0 and wmaster0, no ra0 at all anymore.

Revision history for this message
magilus (magilus) wrote :

Thanks for taking the time to report this bug. Unfortunately we can't fix it, because your description doesn't yet have enough information.

Please include the following additional information, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] http://wiki.ubuntu.com/DebuggingKernelProblems . Thanks in advance!

Changed in linux-source-2.6.20:
assignee: nobody → pirast
status: Confirmed → Needs Info
Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

I can confirm this bug.

I still have my ra0 device, but there is also a new wmaster0 device.

I can't connect with either device, neither using wpasupplicant for WPA-PSK, nor using iwpriv settings that used to work with 2.6.20-9-lowlatency.

% lspci -vvnn
02:09.0 Network controller [0280]: RaLink RT2500 802.11g Cardbus/mini-PCI [1814:0201] (rev 01)
        Subsystem: Micro-Star International Co., Ltd. Unknown device [1462:6833]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 22
        Region 0: Memory at fbffc000 (32-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Revision history for this message
magilus (magilus) wrote :

What about dmesg output? ;-)

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

So, now all the required output (uname -a, dmesg, lspci -vvnn) for both WORKING (2.6.20-9-lowlatency) and NON_WORKING kernel (2.6.20-11-lowlatency)

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

NON_WORKING kernel (2.6.20-11-lowlatency)

magilus (magilus)
Changed in linux-source-2.6.20:
assignee: pirast → ubuntu-kernel-team
status: Needs Info → Confirmed
Revision history for this message
ath (alberto-botti) wrote :

I found a workaround by compiling the very latest CVS sources of the rt2x00 driver (http://rt2400.cvs.sourceforge.net/rt2400/source/rt2x00/ the same as used in the latest Feisty kernel) and I had my RT2500 PCI working correctly on 2.6.20-11 (both generic and lowlatency, on a 32 bit x86 machine) after removing the original driver.
Probably the developers added a fix recently, it works even with NetworkManager, at least for WEP.
I'm attaching the output of lspci (sorry I can't provide a dmesg log as the box is running Edgy at the moment, I'll do it later).

Revision history for this message
C. Funke (funke) wrote :

unfortunately i oversaw this bug report so i opened a duplicate. Nethertheless i have the same problems with my rt2500 based Asus WL-130g Pci card. I am using kernel 2.6.20-11-generic on i386. Attached ist the output of dmesg and lspci -vvnn

Revision history for this message
C. Funke (funke) wrote :
Revision history for this message
Joachim Ziegler (ziegler) wrote :

I can confirm this bug on my ASUS WL-107g PCMCIA card (which is RT2500 based).

# ifup ra0
Invalid command : set
Failed to bring up ra0.

Revision history for this message
Ben Collins (ben-collins) wrote :

Fixed in -12.

Also, bugs should not be set to Confirmed without also getting an Importance.

Changed in linux-source-2.6.20:
assignee: ubuntu-kernel-team → ben-collins
importance: Undecided → Medium
Changed in linux-source-2.6.20:
status: Confirmed → Fix Released
Revision history for this message
Pawouek (pawouek) wrote :

After upgrade to -12 still not working :(
I have Asus WL167g USB card.
When i run wifi-radar it is possible to detect available networks, but when i try to get ip adress throught DHCP it is imposible.

$ uname -a
Linux Armada 2.6.20-12-generic #2 SMP Sun Mar 18 03:07:14 UTC 2007 i686 GNU/Linux

$lsusb -v

Bus 001 Device 002: ID 0b05:1706 ASUSTek Computer, Inc.
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0b05 ASUSTek Computer, Inc.
  idProduct 0x1706
  bcdDevice 0.01
  iManufacturer 1 ASUS
  iProduct 2 802.11g WLAN Drive
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 300mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 255 Vendor Specific Subclass
      bInterfaceProtocol 255 Vendor Specific Protocol
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1
Device Status: 0x0000
  (Bus Powered)

Revision history for this message
hyper_ch (bugs-launchpad-net-roleplayer) wrote :

Upgrading to 2.6.20-12 helped me :)

hyper@xubi:/etc/modprobe.d$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 RT2500 Wireless ESSID:"HyperWAP"
          Mode:Managed Frequency=2.412 GHz Access Point: 00:18:39:CE:9E:E3
          Bit Rate:54 Mb/s Tx-Power:0 dBm
          RTS thr:off Fragment thr:off
          Link Quality=18/100 Signal level=-72 dBm Noise level:-205 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

hyper@xubi:/etc/modprobe.d$ ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:507 errors:0 dropped:0 overruns:0 frame:0
          TX packets:507 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16341 (15.9 KiB) TX bytes:16341 (15.9 KiB)

ra0 Link encap:Ethernet HWaddr 00:0C:41:6C:8F:BA
          inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0
          inet6 addr: fe80::20c:41ff:fe6c:8fba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:5107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5409 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1392 txqueuelen:1000
          RX bytes:2831699 (2.7 MiB) TX bytes:915717 (894.2 KiB)
          Interrupt:19 Base address:0xc000

hyper@xubi:/etc/modprobe.d$ uname -a
Linux xubi 2.6.20-12-generic #2 SMP Sun Mar 18 03:07:14 UTC 2007 i686 GNU/Linux

Revision history for this message
hyper_ch (bugs-launchpad-net-roleplayer) wrote :

And here the lspci-vvnn.log

Revision history for this message
AlejandroRiveira (ariveira) wrote :

 have had the same problem, update to feisty reboot and
no working rt2500 pci wifi card

I use a custom compiled vanilla kernel and driver from
rt2x00.serialmonkey.org (legacy) The same combination
worked in edgy so i guess that the problem lies in wireless tools...

Kernel version is 2.6.20.8 and the driver is a cvs snapshot from
a few weeks

i have used this in my /etc/network/interfaces for eges without
major problems
iface ra0 inet dhcp
        pre-up ifconfig ra0 up
        pre-up ifconfig ra0 down
        pre-up ifconfig ra0 up
        pre-up ifconfig ra0 down
        pre-up iwconfig ra0 essid "myssid"
        pre-up iwconfig ra0 mode Managed
        pre-up iwpriv ra0 set AuthMode=WPAPSK
        pre-up iwpriv ra0 set EncrypType=TKIP
        pre-up iwpriv ra0 set WPAPSK="A shared key"
        pre-up ifconfig ra0 up

The interface comes up and gets an ip by dhcp but no traffic is allowed
as if it have not been autentificated

pings and sudo ifdown ra0 results in msgs like:
send_packet: operation not permitted

Any hints?

Revision history for this message
Christian Mangold (neversfelde) wrote :

I'm doing the same in network/interfaces with 2.6.20-15-generic. Everything works for me.

Revision history for this message
ShaunS (shauns) wrote : Remove network-manager

Hi,
AlejandroRiveira i had to remove network-manager with:
sudo apt-get remove network-manager

I then edited the ra0 part of /etc/network/interfaces to look like:

auto ra0
iface ra0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1

pre-up ifconfig ra0 up
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwconfig ra0 essid MY-ESSID-NAME
pre-up iwpriv ra0 set WPAPSK="MY PASSWORD"

This was for a wireless access system using WPA encryption. I found that having network-manager installed killed my wireless. There seems to be a problem
using network-manager with a rt2500 card.

This post has little to do with the bug described in this post. That bug was fixed with the Feisty release kernel.

Cheers

Revision history for this message
Frans Leerink (f-leerink) wrote :

Hello,

I manually configured on Kubuntu 7.04 my wireless lan cardbus adapter WL-107G, RT2500 based, for use on my local network and the internet. The system recognised the WL-107G so I could manually configure it but I could not get it to work until I closed the network manager icon from my system tray and one of a sudden I could browse the internet.

Regards, Frans

Revision history for this message
Stanislaw Pitucha (viraptor-gmail) wrote :

Confirming (probably) the same bug on 2.6.20-16.
Card shows all networks with 0/100 quality:

`iwlist ra0 scan`
ra0 Scan completed :
          Cell 01 - Address: 00:14:A5:8A:33:19
                    Mode:Managed
...
                    Quality:0/100 Signal level:-75 dBm Noise level:-212 dBm

It won't let me set any ESSID and just ignores all commands on iwconfig. Behaviour started around 2.6.20-10, and still happens every time. rt2500 driver compiled from CVS works ok.

Revision history for this message
Yarek Kowalik (yarek-kowalik) wrote :

Experienced the same problem with Ubuntu 7.04 generic as described by Stanislaw Pitucha. All networks showing 0/100 quality.

WHen trying to select a network while in roaming mode, ra0 eventually dies.

Will try to recompile the driver to see if that works.

Revision history for this message
Stanislaw Pitucha (viraptor-gmail) wrote :

I've found by accident how to "fix" that - if security mode is 'restricted' and key is set, then running:
iwconfig ra0 key off
iwconfig ra0 key [1] (or something else - just setting key back)
switches card back to security mode 'open' and it associates with ap - link quality and everything else gets back to normal! Hope it works for others too.

Revision history for this message
kwan (cbruner) wrote :

I have this problem on an Asus WL-130G PCI card. Using Feisty 7.04 generic Ubuntu all networks showing 0/100 quality. Need to get it working with WPA TPK.

I'm new to Linux, and I'd like to use the fix suggested but I have no idea what/how to deal with setting security mode to 'restricted' and key to off". I tried the commands shown but no change. Can anyone help me here please - I'm getting desperate. Couldn't even get NDISwrapper to work for some reason. If this is a Network Manager issue, how do I/should I turn it off?

Any help would be appreciated.

Revision history for this message
ShaunS (shauns) wrote : Re: [Bug 92742] Re: RT2500-based wireless G network card cannot be set or reset on 2.6.20-11

On Wednesday 22 August 2007 16:34:00 kwan wrote:
> I have this problem on an Asus WL-130G PCI card. Using Feisty 7.04
> generic Ubuntu all networks showing 0/100 quality. Need to get it
> working with WPA TPK.
>
> I'm new to Linux, and I'd like to use the fix suggested but I have no
> idea what/how to deal with setting security mode to 'restricted' and key
> to off". I tried the commands shown but no change. Can anyone help me
> here please - I'm getting desperate. Couldn't even get NDISwrapper to
> work for some reason. If this is a Network Manager issue, how do
> I/should I turn it off?
>
> Any help would be appreciated.

Hi Kwan,

Is the WL-130G based on RT2500 chipset.

My Ubuntu 7.04 setup uses a fixed IP and TKIP.

If so:

Install the package wireless-tools
sudo apt-get install wireless-tools

I added the lines below to /etc/network/interfaces

auto ra0
iface ra0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1

pre-up ifconfig ra0 up
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwconfig ra0 essid TI-AR7WRD
pre-up iwpriv ra0 set WPAPSK="PASSWORD"

Change password and IP address as desired - I have a fixed ip address
of 192.168.1.11 and gateway of 192.168.1.1

Note: I removed anything to do with wlan0 in my setup.

You must get your networking setup to use ra0 as the network interface,
disable others like eth0 etc.

Please backup your /etc/network/interfaces file before changing it.

Cheers
Shaun

PS: I have recently upgraded to Ubuntu 7.10 and wireless networking works
much better than 7.04. This is good news for the future release of 7.10

Revision history for this message
kwan (cbruner) wrote :

Shaun:

Your "PS" worked. Installed Tribe 5 of Gutsy, and now, like magic, it
automatically connects with WPA and everything!!

Thank you for the suggestion!

On 8/23/07, ShaunS <email address hidden> wrote:
>
> On Wednesday 22 August 2007 16:34:00 kwan wrote:
> > I have this problem on an Asus WL-130G PCI card. Using Feisty 7.04
> > generic Ubuntu all networks showing 0/100 quality. Need to get it
> > working with WPA TPK.
> >
> > I'm new to Linux, and I'd like to use the fix suggested but I have no
> > idea what/how to deal with setting security mode to 'restricted' and key
> > to off". I tried the commands shown but no change. Can anyone help me
> > here please - I'm getting desperate. Couldn't even get NDISwrapper to
> > work for some reason. If this is a Network Manager issue, how do
> > I/should I turn it off?
> >
> > Any help would be appreciated.
>
> Hi Kwan,
>
> Is the WL-130G based on RT2500 chipset.
>
> My Ubuntu 7.04 setup uses a fixed IP and TKIP.
>
> If so:
>
> Install the package wireless-tools
> sudo apt-get install wireless-tools
>
> I added the lines below to /etc/network/interfaces
>
>
> auto ra0
> iface ra0 inet static
> address 192.168.1.11
> netmask 255.255.255.0
> gateway 192.168.1.1
>
> pre-up ifconfig ra0 up
> pre-up iwpriv ra0 set AuthMode=WPAPSK
> pre-up iwpriv ra0 set EncrypType=TKIP
> pre-up iwconfig ra0 essid TI-AR7WRD
> pre-up iwpriv ra0 set WPAPSK="PASSWORD"
>
>
> Change password and IP address as desired - I have a fixed ip address
> of 192.168.1.11 and gateway of 192.168.1.1
>
> Note: I removed anything to do with wlan0 in my setup.
>
> You must get your networking setup to use ra0 as the network interface,
> disable others like eth0 etc.
>
> Please backup your /etc/network/interfaces file before changing it.
>
>
> Cheers
> Shaun
>
> PS: I have recently upgraded to Ubuntu 7.10 and wireless networking works
> much better than 7.04. This is good news for the future release of 7.10
>
> --
> RT2500-based wireless G network card cannot be set or reset on 2.6.20-11
> https://bugs.launchpad.net/bugs/92742
> You received this bug notification because you are a direct subscriber
> of the bug.
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.