mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
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 a new issue