[pkg-wpa-devel] Re: Patch: Support for mapping scripts, e.g. guessnet

Kel Modderman kelrin at tpg.com.au
Mon Aug 7 12:15:21 UTC 2006


On Monday 07 August 2006 21:24, Felix Homann wrote:
> Hi again Kel,
>
> I would like to revive the patch I've submitted against guessnet (Bug
> #365930) now that we can call mapping scripts from wpa_action. I could make
> it much simpler if the current ssid and bssid were available in the mapping
> script as environment variables. Would you mind making them available as
> e.g. WPA_SSID and WPA_BSSID?

I cannot promise these as environmental vars, that would require Jouni to 
accept a patch, and the very reason the id_str was added was that SSID could 
not be used as a valid mapping in many cases because it may contain weird 
characters that cannot be used by networking tools.

We can however, cludge around this by calling wpa_cli back on itself like:

wpa_cli status | sed -n -e 's/^ssid=//p'

>
> This would also allow for a very simple script mapping by ssid: echo $SSID.

I need a bit more help to understand where this will fit into wpa_action.

Please grab the snapshot again, I've just updated it, and give me some sample 
code so i can visualise what you want.

>
> BTW, there's a small typo in wpa_action:
>
> 	echo "Using wpa-roam-defualt-iface

Yep, fixed.

Thanks, Kel.



More information about the Pkg-wpa-devel mailing list