OpenWRT client mode: Auto associate on boot?

Guys,

I have a friend who has a wrt54g in client mode with openwrt operating system.

I have set nvram variables wl_ssid and wl0_ssid to the ssid of the AP

but it doesnt associate until I issue wl join ssid name

I dont think this is how it is meant to work

I guess I can just add this line to one of the init scripts, but I was just wondering if other people had foudnt his problem and if people had the same work around

Also the AP we are connecting to now has WEP and I was wondering if this is going to cause any issues, can all the OpenWRT client mode people speak up?

Sam


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

nvram settings

Using the below two resources worked for me being able to successfully associate to Pasadena. I'm not sure if you had already seen them. Also I think there is a couple of other settings besides setting the ssid which are mentioned on the below website (setting station mode etc)

On setting client mode:
http://martybugs.net/wireless/openwrt/client.cgi

And if you need wep:
[21:56] Action: [mbm] usually uses wl0_wep=enabled wl0_key1=AABBCC...
[21:56] <[mbm]> (using the hex key value)
[21:57] Action: sk2 should translate to hex then

(eg setting the key in hex is a proven method, just google for an ascii to hex converter... from memory the first link worked fine)
this worked for me with Pasadena (which says something in itself!)

good luck!


the openwrt version is pre white russian

samiam's picture

so i have wl0_ and wl_ variables

yeah ill give it a go

if it ends up in an init script its not the end of the world either

Sam


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.