aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-09 13:08:47 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-09 13:08:47 (GMT)
commit2944824315b7c74838c551ef08c9843e02de1d46 (patch)
tree88d3ea5e4144e937070c815d66016780f6b60fbd /hostapd
parente67b55fb11fde405a0bbeeb4c33abf0d1b6dc7c2 (diff)
downloadhostap-2944824315b7c74838c551ef08c9843e02de1d46.zip
hostap-2944824315b7c74838c551ef08c9843e02de1d46.tar.gz
hostap-2944824315b7c74838c551ef08c9843e02de1d46.tar.bz2
hostapd: Add require_ht configuration parameter
This can be used to configure hostapd to reject association with any station that does not support HT PHY.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf3
2 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 03382d4..f4cd263 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1896,6 +1896,8 @@ struct hostapd_config * hostapd_config_read(const char *fname)
"ht_capab", line);
errors++;
}
+ } else if (os_strcmp(buf, "require_ht") == 0) {
+ conf->require_ht = atoi(pos);
#endif /* CONFIG_IEEE80211N */
} else if (os_strcmp(buf, "max_listen_interval") == 0) {
bss->max_listen_interval = atoi(pos);
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 2def335..6d7263a 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -408,6 +408,9 @@ wmm_ac_vo_acm=0
# L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set)
#ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]
+# Require stations to support HT PHY (reject association if they do not)
+#require_ht=1
+
##### IEEE 802.1X-2004 related configuration ##################################
# Require IEEE 802.1X authorization