about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Ardissone <ricardo.ardissone@gmail.com>2020-05-04 21:28:56 -0300
committerRicardo Ardissone <ricardo.ardissone@gmail.com>2020-05-04 21:28:56 -0300
commita55b736a655c1bf4dffe8ddb985aaa350e22b2dc (patch)
treebdfd19ff01d33d670a093e4859964a03743ff0d4
parentd6d04422433dc031be0f6271fc594d68f4b01405 (diff)
downloadnixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar.gz
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar.bz2
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar.lz
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar.xz
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.tar.zst
nixlib-a55b736a655c1bf4dffe8ddb985aaa350e22b2dc.zip
nixos/hostapd: conditionally enable ieee80211d
-rw-r--r--nixos/modules/services/networking/hostapd.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/hostapd.nix b/nixos/modules/services/networking/hostapd.nix
index c11f5bab3d5c..87e07509fefa 100644
--- a/nixos/modules/services/networking/hostapd.nix
+++ b/nixos/modules/services/networking/hostapd.nix
@@ -21,6 +21,7 @@ let
     hw_mode=${cfg.hwMode}
     channel=${toString cfg.channel}
     ${optionalString (cfg.countryCode != null) ''country_code=${cfg.countryCode}''}
+    ${optionalString (cfg.countryCode != null) ''ieee80211d=1''}
 
     # logging (debug level)
     logger_syslog=-1
@@ -167,7 +168,10 @@ in
           Set as needed to indicate country in which device is operating.
           This can limit available channels and transmit power.
           These two octets are used as the first two octets of the Country String
-          (dot11CountryString)
+          (dot11CountryString).
+          If set this enables IEEE 802.11d. This advertises the countryCode and
+          the set of allowed channels and transmit power levels based on the
+          regulatory limits.
         '';
       };