wpa_supplicant: Use the nl80211 and wext drivers by default

This should make wpa_supplicant work out of the box on newer and older
kernels.
This commit is contained in:
Eelco Dolstra 2013-01-22 12:32:19 +01:00
parent 82fb34f409
commit d75fa1fdc1

View File

@ -51,8 +51,7 @@ in
};
driver = mkOption {
default = "";
example = "nl80211";
default = "nl80211,wext";
description = "Force a specific wpa_supplicant driver.";
};
@ -118,7 +117,7 @@ in
'' else ''
ifaces="${concatStringsSep " -N " (map (i: "-i${i}") ifaces)}"
''}
exec wpa_supplicant -s -u ${optionalString (cfg.driver != "") "-D${cfg.driver}"} -c ${configFile} $ifaces
exec wpa_supplicant -s -u -D${cfg.driver} -c ${configFile} $ifaces -dd
'';
};