OpenWrt Forum Archive

Topic: How to re-estabilish wifi connection...

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

Hi there!
I'm using a little script at boot-time to enable my wifi dongle (rt73), and configure it.
If for some reason the link goes down (access point turned off then on again), is there a way to re-enable the link with the access point automatically?

Many thanks!

typically, after a connection loss or AP off/on as you mentioned, a wireless radio (80211b/g) configured in client mode starts
looking for an access point by sending a special 80211 packet. Depending on the driver of your radio, it tries to associate with the AP it
was connected just before the connection loss.
What does your script do ? Why can't you lock your radio in a specific channel and AP with encrption key, most drivers allows that ....

This is my script, can you suggest something?

route del default gw 192.168.2.1 eth0
ifconfig rausb0 up
iwconfig rausb0 essid myessid
iwconfig rausb0 ap 00:xx:70:9B:xx:xx
iwpriv rausb0 set AuthMode=WPA2PSK
iwpriv rausb0 set WPAPSK=mywpa2pass
iwpriv rausb0 set EncrypType=TKIP
iwconfig rausb0 essid myessid
udhcpc -i rausb0

this is a one time setting. you do not need to repeat this steps even if your client loses connectivity with its AP, unless you reboot your system.
can you do this test. from your client system, you inititate a ping to the AP. Now, reboot your AP, and see the results of the ping.

I have a similar setting, my client reconnects to its AP after rebooting the AP....

nathan_vanan wrote:

this is a one time setting. you do not need to repeat this steps even if your client loses connectivity with its AP, unless you reboot your system.
can you do this test. from your client system, you inititate a ping to the AP. Now, reboot your AP, and see the results of the ping.

I have a similar setting, my client reconnects to its AP after rebooting the AP....

I've just tryed, it won't reconnect sad

ATM I dunno if it's a driver problem or something else (is the rt73 driver buggy in openwrt?)


PS:

Do someone know if there's a way to (or how to...) update wireless tools?

The discussion might have continued from here.