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:
parent
82fb34f409
commit
d75fa1fdc1
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user