aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-05-29 18:18:00 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-11 10:35:49 +0200
commit5898abcf73501b821a407c2c0bc5d912965d9fae (patch)
treefe4e4a7f7595ef8d5046b43272d449956ca1524a
parentbce33fefa7b8bb3f12e720d786a9c6f8f93ce772 (diff)
downloadnixturris-5898abcf73501b821a407c2c0bc5d912965d9fae.tar.gz
nixturris-5898abcf73501b821a407c2c0bc5d912965d9fae.tar.bz2
nixturris-5898abcf73501b821a407c2c0bc5d912965d9fae.zip
nixos/modules/hostapd: add wmm_enabled option
-rw-r--r--nixos/modules/hostapd.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/hostapd.nix b/nixos/modules/hostapd.nix
index 0ca66d0..0dc6f95 100644
--- a/nixos/modules/hostapd.nix
+++ b/nixos/modules/hostapd.nix
@@ -164,6 +164,18 @@ let
'';
};
+ wmm_enabled = mkOption {
+ type = types.bool;
+ default = true;
+ description = ''
+ Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
+ for 802.11a or 802.11g networks
+ These parameters are sent to WMM clients when they associate.
+ The parameters will be used by WMM clients for frames transmitted to the
+ access point.
+ '';
+ };
+
ieee80211n = mkOption {
type = types.bool;
default = true;
@@ -441,6 +453,7 @@ let
country_code=${icfg.countryCode}
ieee80211d=1
${optionalString (icfg.ieee80211h) "ieee80211h=1"}
+ wmm_enabled=${boolean icfg.wmm_enabled}
${optionalString icfg.ieee80211n ''
ieee80211n=1
ht_capab=${mapCapab icfg.ht_capab}