aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-12-28 15:15:01 (GMT)
committerJouni Malinen <j@w1.fi>2010-12-28 15:15:01 (GMT)
commit0d7e5a3a29efd4bc138e74b19657e750d22c2887 (patch)
tree1393ad2d01258c17ae21fe6fd228d653687435d1 /hostapd
parentd3e01b9d71046cdf77e4ff4ee6226c9d90d2e549 (diff)
downloadhostap-0d7e5a3a29efd4bc138e74b19657e750d22c2887.zip
hostap-0d7e5a3a29efd4bc138e74b19657e750d22c2887.tar.gz
hostap-0d7e5a3a29efd4bc138e74b19657e750d22c2887.tar.bz2
Allow AP mode to disconnect STAs based on low ACK condition
The nl80211 driver can report low ACK condition (in fact it reports complete loss right now only). Use that, along with a config option, to disconnect stations when the data connection is not working properly, e.g., due to the STA having went outside the range of the AP. This is disabled by default and can be enabled with disassoc_low_ack=1 in hostapd or wpa_supplicant configuration file. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf5
2 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 1651e25..4938611 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2032,6 +2032,8 @@ struct hostapd_config * hostapd_config_read(const char *fname)
else
bss->p2p &= ~P2P_ALLOW_CROSS_CONNECTION;
#endif /* CONFIG_P2P_MANAGER */
+ } else if (os_strcmp(buf, "disassoc_low_ack") == 0) {
+ bss->disassoc_low_ack = atoi(pos);
} else {
wpa_printf(MSG_ERROR, "Line %d: unknown configuration "
"item '%s'", line, buf);
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index fe97ea8..2090e9f 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -342,6 +342,11 @@ wmm_ac_vo_acm=0
# default: 300 (i.e., 5 minutes)
#ap_max_inactivity=300
+# Disassociate stations based on excessive transmission failures or other
+# indications of connection loss. This depends on the driver capabilities and
+# may not be available with all drivers.
+#disassoc_low_ack=1
+
# Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to
# remain asleep). Default: 65535 (no limit apart from field size)
#max_listen_interval=100