Trouble connecting from local network

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=6059

frodwith

29-03-2010 22:02:32

Hi fellas. Profuse apologies if this particular issue has been posted
elsewhere on the forums, but I can't find it if it has.

My rt61 box randomly stops responing to local network traffic.

Traffic to/from the internet seems to work fine.

Traffic from the machine with the rt61 card to other machines on the network
works fine.

Periodically, though, traffic to the machine with the rt61 card from my local
network stops working. Everything (pings, http, ssh) just starts dropping packets.

Strangely, I can wake it up again by going out from the rt61 box to one of my
other local machines (via ping or anything else). Initiating traffic with the
WAN does not wake it back up.

My router (a linksys wrt54g running Tomato, if that matters) continues to be
able to ping the rt61 box without problems. One of the reasons I'm running
Tomato is because I had this same problem under DD-WRT firmware on the router
as well, so that would tend to indicate that it isn't the router's problem.
None of my other wireless devices experience this problem, either, so I think
that strongly suggests the fault is with the rt61 card.

After "waking up" the lan connectivity with a ping from the rt61 box, the card
will work as it should for an apparently random period of time before lapsing
back into this odd "I'm not listening" state. dmesg doesn't say anything odd
when it starts doing this.

The box does not exhibit this behavior when using a wired connection.

I'm using wicd for connection management and wpa2 for security. The box
exhibits the same behavior with WEP or no security at all, however.

The card exhibited the same behavior with the stock kernel I have installed
(see below) and with the compat-wireless driver (installed via
linux-backports-modules-karmic).

Here's some relevant snippets
[code1g56xk6p] $ lspci | grep RaLink
00:0d.0 Network controller: RaLink RT2561/RT61 802.11g PCI

$ lsmod | grep rt61
rt61pci 20096 0
crc_itu_t 1852 1 rt61pci
rt2x00pci 7868 1 rt61pci
rt2x00lib 29820 2 rt61pci,rt2x00pci
eeprom_93xc6 1916 1 rt61pci

$ uname -a
Linux odin 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux

$ modinfo rt61pci
filename: /lib/modules/2.6.31-10-20-generic/updates/cw/rt61pci.ko
licence: GPL
firmware: rt2661.bin
firmware: rt2651s.bin
firmware: rt2561.bin
description: Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: AD6DB46E508D5F450BBAFF9
alias: pci:v00001814d000000401sv*sd*bc*sc*i*
alias: pci:v00001814d000000302sv*sd*bc*sc*i*
alias: pci:v00001814d000000301sv*sd*bc*sc*i*
depends: rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic: 2.6.31-20-generic smp mod_unload modversions 586
parm: nohwcrypt:Disable hardware encryption. (bool)

$ iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"REDACTED"
Mode:Managed Frequency:2.457 GHz Access Point: **:RE:DA:CT:ED:**
Bit Rate=54 MB/s Tx-Power=13 dBm
Retry long limit: 7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-24 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Misssed beacon:0[/code1g56xk6p]

Any help you can give would be greatly appreciated, and I'll be happy to post
any other debugging output. Thanks!

gr1b

30-03-2010 03:59:49

I have a very similar setup and exactly the same issues. In fact, when it "goes to sleep" I can connect to my ubuntu box through the router and from WAN, but not from anywhere in the network. I have tried turning off power management with no change in results.

Furthermore, I think I have nailed the problem down a little. In my case, the card stops listening to LAN right after WPA2 rekeying, which is set to happen every hour on the Tomato router. Also, I seem to be able to prevent this behavior by constantly pinging the affected machine from the LAN. No error messages in debug, dmesg, or anywhere.

Since both the OP and I use Tomato, the problem may lie in the router and its bridging getting broken somehow. Haven't investigated this. Maybe I will try OpenWRT to see if that helps. It is possible that if the problem lies with the router then both DD-WRT and Tomato are affected (since the OP had the same problem under DD-WRT). However, I strongly believe the problem is with the rt61pci driver, since none of the other devices on the network have problems.

I use wpa_supplicant for wireless connection management. My Linksys WRT54G-GL 1.1 is running Tomato v1.27.1798.

I also wanted to try compiling the latest driver to use with this kernel but haven't figured out the proper way (or even if it's possible) because I'm pretty n00b when it comes to kernel and modules. Here is relevant info
[code384j75a8]
$ lspci | grep RaLink
00:0b.0 Network controller: RaLink RT2561/RT61 802.11g PCI

$ lsmod | grep rt61
rt61pci 20576 0
crc_itu_t 1852 1 rt61pci
rt2x00pci 7900 1 rt61pci
rt2x00lib 29756 2 rt61pci,rt2x00pci
eeprom_93cx6 1916 1 rt61pci

$ uname -a
Linux ubuntu 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux

$ modinfo rt61pci
filename: /lib/modules/2.6.31-20-generic/kernel/drivers/net/wireless/rt2x00/rt61pci.ko
license: GPL
firmware: rt2661.bin
firmware: rt2561s.bin
firmware: rt2561.bin
description: Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: 801A037A3E53BB7E7E9C627
alias: pci:v00001814d00000401sv*sd*bc*sc*i*
alias: pci:v00001814d00000302sv*sd*bc*sc*i*
alias: pci:v00001814d00000301sv*sd*bc*sc*i*
depends: rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic: 2.6.31-20-generic SMP mod_unload modversions 586
parm: nohwcrypt:Disable hardware encryption. (bool)

$ iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"gopsu10"
Mode:Managed Frequency:2.447 GHz Access Point: xx:xx:xx:xx:xx:xx
Bit Rate=54 Mb/s Tx-Power=11 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=66/70 Signal level=-44 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2a1:b0ff:fe92:701c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:999256 errors:0 dropped:0 overruns:0 frame:0
TX packets:1013424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:538459328 (538.4 MB) TX bytes:914480853 (914.4 MB)

Rekeying string:
Mar 29 23:42:58 ubuntu wpa_supplicant[733]: WPA: Group rekeying completed with xx [GTK=CCMP]
[/code384j75a8]