3
0
Fork 0
forked from mirrors/nixpkgs

nixos/hostapd: conditionally enable ieee80211d

This commit is contained in:
Ricardo Ardissone 2020-05-04 21:28:56 -03:00
parent d6d0442243
commit a55b736a65

View file

@ -21,6 +21,7 @@ let
hw_mode=${cfg.hwMode} hw_mode=${cfg.hwMode}
channel=${toString cfg.channel} channel=${toString cfg.channel}
${optionalString (cfg.countryCode != null) ''country_code=${cfg.countryCode}''} ${optionalString (cfg.countryCode != null) ''country_code=${cfg.countryCode}''}
${optionalString (cfg.countryCode != null) ''ieee80211d=1''}
# logging (debug level) # logging (debug level)
logger_syslog=-1 logger_syslog=-1
@ -167,7 +168,10 @@ in
Set as needed to indicate country in which device is operating. Set as needed to indicate country in which device is operating.
This can limit available channels and transmit power. This can limit available channels and transmit power.
These two octets are used as the first two octets of the Country String 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.
''; '';
}; };