problems getting and staying connected

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

kkrev

12-09-2009 10:02:30

I'm trying to use my new LINKSYS WMP54G pci card on a protected home LAN, but it fails to connect most of the time. dhcpcd will finally successfully talk with the router after several attempts. Then the connection frequently drops out and I have to restart dhcpcd. I don't think it's signal issues because my Atheros chip laptop is right on top of the desktop tower and connects just fine.

I would appreciate any guidance on how to debug the issue.

[code25m2ifqq]
$ lspci | grep RaLink
01:08.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)[/code25m2ifqq]

I compiled the rt2500 driver and the wireless stuff into (not as modules) Linux kernel 2.6.30.5. The wlan0 interface shows up fine.

[code25m2ifqq]$ ifconfig -a
...
sit0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-6C-6F-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:16:b6:56:ae:79
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:148924 errors:0 dropped:0 overruns:0 frame:0
TX packets:99312 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:165688114 (158.0 MiB) TX bytes:15256249 (14.5 MiB)

wmaster0 Link encap:UNSPEC HWaddr 00-16-B6-56-AE-79-6C-6F-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[/code25m2ifqq]

Why can't I get an access point listing?
[code25m2ifqq]
$ sudo iwlist wlan0 ap
wlan0 Interface doesn't have a list of Peers/Access-Points # Why not? This works on the Atheros card in my laptop.
[/code25m2ifqq]

dhcpcd will bomb out trying to connect over and over again until eventual success.
[code25m2ifqq]$ sudo iwconfig wlan0 essid Blah key BlahBlah ap 00:18:39:97:E1:D1
$ sudo dhcpcd wlan0
Broadcasting DHCP_REQUEST for 192.168.0.10
timed out waiting for DHCP_ACK response
Broadcasting DHCP_DISCOVER
timed out waiting for a valid DHCP server response # this will happen over and over again.
[/code25m2ifqq]

Then the connection can't make it through a six hour period without dying.

omega

23-09-2009 22:47:50

Check

viewtopic.php?f=5&t=5646

I think we have the same problem, could you post lsmod, dmesg and lspci -v (only the corresponding section to the driver) like I did, just to see if its the same problem.

kkrev

08-10-2009 16:17:15

I am getting horrible performance. Very low bandwidth and constant disconnects. I will have to string cable and get rid of this card.

I get stuff like this from dmesg before cut-out

[code2g658fth]
[41926.767019] phy0 -> rt2500pci_set_device_state: Error - Device failed to enter state 1 (-16).
[41927.765027] phy0 -> rt2500pci_set_device_state: Error - Device failed to enter state 1 (-16).
[41928.765021] phy0 -> rt2500pci_set_device_state: Error - Device failed to enter state 1 (-16).
[41935.771019] phy0 -> rt2500pci_set_device_state: Error - Device failed to enter state 1 (-16).
[41938.303025] wlan0: no probe response from AP 00:18:39:97:e1:d1 - disassociating
[41938.303071] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[41938.303071] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[41938.303077] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[42007.518233] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[42007.518240] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[42007.518617] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[/code2g658fth]

I tried recompiling the kernel without any power management stuff, in case that would get rid of the state 1 stuff, but it didn't work.

I also see stuff like this
[code2g658fth]
[87772.624017] wlan0: no IPv6 routers present
[88729.984692] wlan0: deauthenticated (Reason: 7)
[88729.984715] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88729.984720] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88729.987522] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88729.987529] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88729.997592] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88729.997599] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88729.998282] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88729.998288] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88729.999191] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88729.999197] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.001965] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88730.001972] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.011473] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88730.011480] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.012285] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88730.012291] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.013061] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88730.013066] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.014327] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 2, CWmax: 3, Aifs: 2, TXop: 47.
[88730.014333] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 94.
[88730.984033] wlan0: direct probe to AP 00:18:39:97:e1:d1 try 1
[88731.184025] wlan0: direct probe to AP 00:18:39:97:e1:d1 try 2
[88731.384027] wlan0: direct probe to AP 00:18:39:97:e1:d1 try 3
[88731.584032] wlan0: direct probe to AP 00:18:39:97:e1:d1 timed out
[/code2g658fth]