Connection gets lost after a while

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

wudmx

01-10-2007 17:38:34

Hello,

I have setup my Wlan with WEP and WPA, both methods with the same problem after a while, the connection is just lost. I have to re-run wlan starting scripts or I must reboot.

I've read on other forums that other users have this problem too, but I haven't found any solutions.

This happens quite randomly... sometimes I can work over an hour, sometimes it does not take longer than 5 minutes until my connection is lost.

I'm on Gentoo Linux, vanilla-sources 2.6.22.1 (also tried 2.6.19.7), wireless-tools 29_pre22 and of course rt2500 1.1.0_pre2007071515 .

My Wlan card (lspci -v)
[code209eod6x]
00:0f.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
Subsystem: Unknown device 1948:3c01
Flags: bus master, slow devsel, latency 64, IRQ 5
Memory at dfffe000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [40] Power Management version 2
[/code209eod6x]

My configuration is in /etc/conf.d/net.
[code209eod6x]
essid_ra0="SMC"
config_ra0="dhcp"
#key_SMC="s:smcsmcsmcsmcs enc open"
dhcp_SMC="nodns nontp nonis"
dns_servers_SMC=( "194.25.2.129" )
preferred_aps=( "SMC" )
associate_order="forcepreferredonly"
blacklist_aps=( "Frank" "Speedport W 501V")

# example for rt2500 WPA
iwpriv_SMC=(
"set AuthMode=WPAPSK"
"set EncrypType=TKIP"
"set WPAPSK=foobarfoobar"
)
[/code209eod6x]

Since I have a Duron 1Ghz, I have no SMP support enabled in the kernel (see kernel attachment).

What else to tell you... is it normal, that the link quality drops and increases? At startup I often have a link quality 58/100 or higher, and when the connection is lost, it is 0/100.

My guess it has something to do with the wlans of my two neighbours whose access point are farther away than my AP. I've tried to blacklist them, but that did not help.

Then I've heard something about using another channel. Look at this output
[code209eod6x]
duxon andi # iwlist scan
lo Interface doesn't support scanning.

ra0 Scan completed :
Cell 01 - Address: 00:13:F7:2C:B1:DE
Mode:Managed
ESSID:"SMC"
Encryption key:on
Channel:6
Quality:43/100 Signal level:-77 dBm Noise level:61 dBm
Cell 02 - Address: 00:15:0C:80:C8:48
Mode:Managed
ESSID:"Speedport W 501V"
Encryption key:off
Channel:6
Quality:0/100 Signal level:-83 dBm Noise level:61 dBm
Cell 03 - Address: 00:15:0C:60:C4:33
Mode:Managed
ESSID:"Frank"
Encryption key:on
Channel:6
Quality:0/100 Signal level:-84 dBm Noise level:61 dBm
[/code209eod6x]

SMC is my SSID. All use channel 6. Isnt there a way to use another channel? I dont know if it possible at all... my knowledge about WLan protocols etc. stops here.

Is there any solution for this? Should I add more information about certain things? Just name it!

off-topic questions while "debugging" this, I've configured WPA for the first time - I used to have WEP as encryption. Is my WPA setup faulty? Should there be any message about "bringing up WPA" as there is with WEP "(WEP enabled)"? I haven't seen anything, and Im not quite sure whether WAP is enabled or if I don't use any encryption at all.

Thanks a lot for your patience and your help!
wudmx

Spy84464

02-10-2007 20:10:28

Hello,

SMC is my SSID. All use channel 6. Isnt there a way to use another channel? I dont know if it possible at all... my knowledge about WLan protocols etc. stops here.[/quote1lkmm4l5]Yes, this can be changed in your access point control panel. Setting a different could increase reliability.

Is there any solution for this? Should I add more information about certain things? Just name it![/quote1lkmm4l5]Yes, it would be helpful if you could post a debug trace when the disconnection occurs. Everything is explained in the TESTING file coming with the driver.

off-topic questions while "debugging" this, I've configured WPA for the first time - I used to have WEP as encryption. Is my WPA setup faulty? Should there be any message about "bringing up WPA" as there is with WEP "(WEP enabled)"? I haven't seen anything, and Im not quite sure whether WAP is enabled or if I don't use any encryption at all. [/quote1lkmm4l5]No, there is nothing that reports if WPA is enabled unfortunately, you can't say from iwconfig output.

Regards,
Romain

Cappa72

12-10-2007 06:45:38

Hello,

I have setup my Wlan with WEP and WPA, both methods with the same problem after a while, the connection is just lost. I have to re-run wlan starting scripts or I must reboot.

I've read on other forums that other users have this problem too, but I haven't found any solutions.

[/quote2bes9tua]

I had similar problem with the new Mandriva2008 as well as OpenSuSE10.3, and the solution was the defined access point in managed mode.
[code2bes9tua]
iwconfig ra0 ap 00:FF:FF:FF:FF:FF
[/code2bes9tua]
(Of course 00FFFFFFFFFF is an example it shall be your ap)

It worked for me and the connection became stable.
Note I tried it only with WEP.

BR,
Cappa

wudmx

14-10-2007 20:25:37

I had similar problem with the new Mandriva2008 as well as OpenSuSE10.3, and the solution was the defined access point in managed mode.
[code1oknsqh9]
iwconfig ra0 ap 00:FF:FF:FF:FF:FF
[/code1oknsqh9][/quote1oknsqh9]
When did you invoke that command? Before network initialization? Or after it? Do you invoke it manually or do you run it in a script?

Yes, it would be helpful if you could post a debug trace when the disconnection occurs. Everything is explained in the TESTING file coming with the driver.[/quote1oknsqh9]
I'll try Cappa72's advice and if it does not work, I will try to install the driver manually.

Thanks
wudmx

wudmx

16-10-2007 14:38:36

One question when I load the driver with debug mode enabled. The problem is that sometimes the connection is stable for hours (like today) and then after 8 hours the connection is broken... I've seen that the /var/log/debug is really big (> 200K after a few seconds). Do I have to use the driver from your site with debug=31 enabled the whole time (i mean than the log file will fill up my hard disk)? Or is it enough to load the driver after the connection broke, something like
[codex87ceie2]/etc/init.d/net.ra0 stop
rmmod rt2500
modprobe rt2500 debug=31
/etc/init.d/net.ra0 start[/codex87ceie2]

Awaiting a reply, than I'll give it a try!

Thanks
wudmx

Spy84464

16-10-2007 20:26:34

No, debug needs to be enabled when the disconnection occurs. Otherwise nothing useful will be logged.

Cappa72

18-10-2007 19:06:10

I had similar problem with the new Mandriva2008 as well as OpenSuSE10.3, and the solution was the defined access point in managed mode.
[codepwyuv6bf]
iwconfig ra0 ap 00:FF:FF:FF:FF:FF
[/codepwyuv6bf][/quotepwyuv6bf]
When did you invoke that command? Before network initialization? Or after it? Do you invoke it manually or do you run it in a script?

Yes, it would be helpful if you could post a debug trace when the disconnection occurs. Everything is explained in the TESTING file coming with the driver.[/quotepwyuv6bf]
I'll try Cappa72's advice and if it does not work, I will try to install the driver manually.

Thanks
wudmx[/quotepwyuv6bf]

This is the "script" I had to use.
[codepwyuv6bf]
linux-o0b9:~ # iwconfig wlan0 essid ST0B626
linux-o0b9:~ # iwconfig wlan0 key s:mysecretcode
linux-o0b9:~ # ifconfig wlan0 inet 192.168.1.65 up
linux-o0b9:~ # iwconfig wlan0 ap 00:24:AF:7D:7A:52
linux-o0b9:~ # route add default gw 192.168.1.2
[/codepwyuv6bf]

I hope it helps, otherwise I have not got any further idea. (I am not a guru...)

*edited note the interface name was 'wlan0' under SuSE; 'ra0' was under Mandriva.

BR,
Cappa.

wudmx

19-10-2007 20:40:26

Hi,

after using the driver from the homepage, everything worked fine. Until now. I have here a debug file, half an hour, but 112M big. What should I do with it? Do you really need all this information ? I think I cannot attach it in this forum, what shall I do now? Shall I look for a server where I can upload the file ?

Thanks in advance!
wudmx

@Cappa i'll try your settings next week. Thanks to you, too.

Spy84464

20-10-2007 17:15:13

Only the last lines of the file should be needed, let's say the last 300. Keep the whole file, in case a developer asks for the beginning.

Vern

20-10-2007 17:49:08

Hi wudmux,

Gzip it. Attach it to a posting here. I'll take a look at it.

Thanks,

wudmx

21-10-2007 21:16:57

Hi,
didn't know that 112 MB text can be compressed to 2.8 MB using gzip.

Since I'm only allowed to upload 2 MB as an attachment, I've uploaded it here
[url1hkd513s]http://studwww.ira.uka.de/~s_aleppe/debug.gz[/url1hkd513s]

Please have a look at it!

Thanks for your work in advance,
wudmx

wudmx

29-10-2007 20:52:03

Has anyone looked into the debug output and found something useful?

Vern

31-10-2007 17:22:16

Have you tried specifying the MAC address per Cappa72's comment?

wudmx

02-11-2007 06:12:20

Have you tried specifying the MAC address per Cappa72's comment?[/quote2m7tdpk1]
No, haven't tried it before. I'm testing now, this is what I've done

Since I'm running Gentoo with its network scripts, I've first disabled them
[code2m7tdpk1]/etc/init.d/net.ra0 stop[/code2m7tdpk1]

Then I've followed the steps in iwpriv_usage.txt
[code2m7tdpk1]iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwconfig ra0 essid MY_SSID
iwpriv ra0 set WPAPSK="MY_SECRET_KEY"
iwconfig ra0 essid SMC
iwconfig ra0 ap MY_AP_MAC
dhcpcd ra0[/code2m7tdpk1]

My WPA-secured wlan is running now while I'm writing this reply. Hope I've set it up correctly. I will provide information ASAP. The problem here is that it takes mostly several hours to test it, since my connection doesn't get lost after a few minutes but randomly after several hours!

wudmx