[PATCH 3/5] -m <ifname_match> matches interface names via fnmatch(3) and assigns them the default configuration file, like so
roy at marples.name
Thu May 28 10:23:36 EDT 2009
Jouni Malinen wrote:
> On Tue, May 26, 2009 at 10:25:16PM +0100, Roy Marples wrote:
>> wpa_supplicant -c /etc/wpa_supplicant.conf -m "*"
>> This makes every interface try to initialize with the default driver,
>> whch distribution setup a lot easier.
>> This can be used in the future to for wpa_supplicant to startup
>> on interfaces that do not exist at boot, like for say pcmcia interfaces.
> How portable code is this? I did not test this yet, but I would expect
> this to break the build with MinGW and Visual Studio..
You're correct, it broke.
I've attached a new patch that allows it to work, using strcmp instead
of fnmatch on Windows. Not optimal, but heh.
> Furthermore, I'm not sure this type of functionality should really be
> part of wpa_supplicant. The more common way of doing this has been to
> have an external component that is tracking hotplug devices add new
> interfaces (e.g., through dbus or the global control interface; or by
> running one wpa_supplicant process per interface, if desired).
Does it hurt any by allowing wpa_suppicant to have this functionality?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the HostAP