[pkg-wpa-devel] Driver autodetection

Reinhard Tartler siretart at tauware.de
Tue Apr 4 16:27:48 UTC 2006


retitle 295445 please add driver autodetection
severity 295445 minor
quite

Beginning with wpasupplicant_0.4.8-1, hotplug support is now only a
matter of calling 'ifup $IFACE', which I don't think can be handled
within the wpasupplicant package. So I'm retitling this bug to indicate
that we should focus on the driver detection here.

hotplug has been deprecated in favor by udev. Here is how I envision how
driver detection could work with udev:

The current ifupdown.sh, which is called by ifupdown, falls back to
driver 'wext', if nothing else is specified. Before that, it checks for
the existance of a file called /etc/wpa_supplicant/driver.$IFACE. I
think udev should create such a file with the driver backend which
wpasupplicant should use for this interface. (it doesn't really need to
be in /etc, I'm happy to check another file, say,
/var/lib/wpa_supplicant/driver.$IFACE)

We could easily ship such a udev rule in the wpasupplicant package. The
advantage of this approach is that the user can easily override the
autodetection supplying a parameter 'wpa-driver' in
/etc/network/interfaces'.

Any udev guru around who could write such a script?

Gruesse,
	Reinhard




More information about the Pkg-wpa-devel mailing list