Unverified Commit b559f404 authored by Naïm Favier's avatar Naïm Favier Committed by GitHub
Browse files

Merge pull request #91188 from gloaming/nixos/hostapd

nixos/hostapd: Disable insecure TKIP, enable 802.11n/ac, usability
parents cee3d9ac 86a38735
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ let
    ssid=${cfg.ssid}
    hw_mode=${cfg.hwMode}
    channel=${toString cfg.channel}
    ieee80211n=1
    ieee80211ac=1
    ${optionalString (cfg.countryCode != null) "country_code=${cfg.countryCode}"}
    ${optionalString (cfg.countryCode != null) "ieee80211d=1"}

@@ -34,6 +36,7 @@ let

    ${optionalString cfg.wpa ''
      wpa=2
      wpa_pairwise=CCMP
      wpa_passphrase=${cfg.wpaPassphrase}
    ''}
    ${optionalString cfg.noScan "noscan=1"}
@@ -66,7 +69,6 @@ in
      };

      interface = mkOption {
        default = "";
        example = "wlp2s0";
        type = types.str;
        description = lib.mdDoc ''