]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: Try all drivers by default
authorKees Cook <kees@ubuntu.com>
Tue, 12 Oct 2021 18:28:31 +0000 (11:28 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 15 Oct 2021 20:33:11 +0000 (23:33 +0300)
commitf332f69513a205a25ae45da9d04f45c18edac9a3
tree167be3f7c1a3a8556f6bac97ea2d669a84f14f2a
parent4775a5f827fa28887db3e12225c56fc2944bac6b
wpa_supplicant: Try all drivers by default

Some distros carry patches to specify driver fallback, but only in
specific conditions (e.g. the systemd service definition[1]). This leaves
other wpa_supplicant instances needing to define fallback themselves,
which leads to places where wpa_supplicant thinks it can't find a
driver[2]. Instead, when -D is not specified, have wpa_supplicant try
all the drivers it was built with in an attempt to find a working one
instead of just giving up if the first doesn't work.

[1] https://salsa.debian.org/debian/wpa/-/blob/debian/unstable/debian/patches/networkd-driver-fallback.patch
[2] https://bugs.launchpad.net/netplan/+bug/1814012

Signed-off-by: Kees Cook <kees@ubuntu.com>
wpa_supplicant/wpa_supplicant.c