Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] wlan-ng with prism2_usb


quote("Howard Lowndes");
>Does anyone have a wlan rc script they are prepared to share other than 
>the one that is in the wlan-ng package, or can offer some other 
>solution, or suggest where I should be looking in hotplug.
>
>System is FC4 with 2.6.12 kernel

I use a similar product (Netgear MA111) which uses the same chipset
under Ubuntu.

I've not looked much into integrating it into the if(up|down) architecture,
and the way I usually do it is using a bunch of init scripts depending
on the network.

As far as hotplug goes, hotplug is only responsible for loading the
prism2_usb module, once that's done, hotplug's done its job.

This would be interesting to look at integrate starting the device
into hotplug, though, AFAIK, the wlan-ng stuff doesn't support setting
the ESSID to the beloved `any` setting, so we'd need to scan for ESSIDs
and pick one at random out of those available, or have a static set
ESSID.

An example init script:
#!/bin/bash
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=drahtlos authtype=opensystem
dhclient3 wlan0

Cheers,
-Chris.