OpenWrt Forum Archive

Topic: WPA Client disconnects after a few minutes (RC4)

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi folks,

i have a strange behaviour i cannot explain.

I set up a WRT54G V2.0 with RC4 as a WPA client of a Zyxel Prestige 620. The Wrt acts as a router, with quagga and ripd (which the zyxel supports as well). I do not have or need the firewall, so i deleted the firewall init-script.

This works just fine until the connection disconnects after about 5 to 10 minutes.

When i start "/sbin/wifi", the connection comes up again. I cannot see any messages in the logs or errors with iwconfig.

Any hints where to look?

TIA,
Stephan

Here some infos abot my config:
----
root@hydra:~# nvram show|grep wl0_
size: 1190 bytes (31578 left)
wl0_akm=psk
wl0_infra=1
wl0_ifname=eth1
wl0_mode=sta
wl0_ssid=mu
wl0_wpa_psk=<mypasshere>
wl0_wep=disabled
wl0_wpa_gtk_rekey=1800      # i changed this. previously it was default 3600, no diff in behaviour.
wl0_radio=1
wl0_channel=2
wl0_crypto=tkip           
----

root@hydra:~# nvram show|grep wifi
size: 1190 bytes (31578 left)
wifi_gateway=10.1.1.1
wifi_netmask=255.255.255.0
wifi_proto=static
wifi_dns=10.1.1.1
wifi_ipaddr=10.1.1.2
wifi_ifname=eth1
root@hydra:~#   
----

Hello again,

it seems that the interuption happens after half an hour, which is the time interval set as default on the zyxel prestige for reAuthentication. However, this was always like that.  I did not mention this in the original post: everything worked with RC3.

As i erased NVRAM with the migration to RC4 and set up everything from scratch, maybe there was a change in the WPA handling or did i miss some configuration?

regards,
Stephan

I seem to be having the same problem, as of this morning. I'm going to torture test it this afternoon by running mythtv on a netbooted box across the wireless link, and see how long it works. Until I found this I had assumed it was some sort of timeout due to inactivity. I'll report the results here.

If that doesn't work, I may have to try wpa_supplicant or xsupplicant, to see if it's a problem with nas.

If anyone else has figured this out, please post about it.

Thanks,

Peter

Probably unrelated, but I hadn't yet set up ntp for the date of one of my routers, so if they pass a date rather than TTL, that could be related.

P

Hi Peter and all,

as a workaround i set up an hourly cron job to call /sbin/wifi and ntp. works nicely for me. However, i would prefer to track down the problem, but do not know how to get further.

Stephan

(Last edited by cammox on 1 Dec 2005, 07:33)

The discussion might have continued from here.