From 2f5ced6d7c3d1f31305d8c0935a2ff0d3da3d56a Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 9 Jan 2022 12:29:30 +0100 Subject: [PATCH] nixos/wireless: enable PMF by default Alternative solution to PR #152443. This fixes authentication failures to WPA3 networks (issue #151729) by enabling protected management frames. Note: old client without 802.11w support will still fail. --- nixos/modules/services/networking/wpa_supplicant.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 07dec8ea7181..29c9d5ca78c2 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -18,6 +18,7 @@ let "ctrl_interface_group=${cfg.userControlled.group}" "update_config=1" ]) + ++ [ "pmf=1" ] ++ optional cfg.scanOnLowSignal ''bgscan="simple:30:-70:3600"'' ++ optional (cfg.extraConfig != "") cfg.extraConfig);