diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-12-28 17:15:01 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-12-28 17:15:01 +0200 |
commit | 0d7e5a3a29efd4bc138e74b19657e750d22c2887 (patch) | |
tree | 1393ad2d01258c17ae21fe6fd228d653687435d1 /hostapd/config_file.c | |
parent | d3e01b9d71046cdf77e4ff4ee6226c9d90d2e549 (diff) | |
download | external_wpa_supplicant_8_ti-0d7e5a3a29efd4bc138e74b19657e750d22c2887.zip external_wpa_supplicant_8_ti-0d7e5a3a29efd4bc138e74b19657e750d22c2887.tar.gz external_wpa_supplicant_8_ti-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/config_file.c')
-rw-r--r-- | hostapd/config_file.c | 2 |
1 files changed, 2 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); |