From d75fa1fdc13ea4632d036aab9a3cae4b829cced7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Jan 2013 12:32:19 +0100 Subject: [PATCH] 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. --- modules/services/networking/wpa_supplicant.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/services/networking/wpa_supplicant.nix b/modules/services/networking/wpa_supplicant.nix index 20752cdee25..697e54f91d3 100644 --- a/modules/services/networking/wpa_supplicant.nix +++ b/modules/services/networking/wpa_supplicant.nix @@ -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 ''; };