wpa_cli event handling

Roy Marples uberlord at gentoo.org
Fri Jan 6 06:13:00 EST 2006

On Thursday 05 January 2006 04:55, Jouni Malinen wrote:
> On Mon, Jan 02, 2006 at 09:50:41AM -0500, Paul Fox wrote:
> > i would think that passing an (optional) identifier of some sort
> > from wpa_supplicant (via wpa_cli) to the event handler would make
> > this cleaner.  i'm picturing something similar to the pcmcia
> > "scheme" ID:  a stanza in the wpa_supplicant config file would
> > include a "scheme=xxx" line (e.g. "scheme = home", "scheme =
> > work", "scheme = use_ZCIP").  (and of course many network stanzas
> > might reference the same scheme ID.)  if the scheme (or whatever
> > it's called) parameter were present in the config, it would be
> > passed as a new third argument to the action script
> I don't have anything against adding something like this if there is
> enough interest on it and someone would really use it. This means
> changing an event message from wpa_supplicant, so the accepted strings
> would likely be quite limited in what is allowed (e.g., just
> alpha-numeric characters and underscore; no spaces etc.).

If you do this, please just export variables to the shell instead of appending 
them as arguments.

This allows us to remove/add variables at will instead of fixing them to arg1 
ACTION, arg2 SSID, arg3 ENCTYPE, etc etc


Roy Marples <uberlord at gentoo.org>
Gentoo Linux Developer

More information about the HostAP mailing list