aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_ssid.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-26 20:01:26 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-26 20:35:07 (GMT)
commit00e5e3d5099eac9e75e23056dbbb9add73f63b0a (patch)
tree84a797fbcb215bd80ba2650ba573cd2b2665cd48 /wpa_supplicant/config_ssid.h
parent2af4d404a8ba4a4b561258187dc9b7c465ee31ec (diff)
downloadhostap-00e5e3d5099eac9e75e23056dbbb9add73f63b0a.zip
hostap-00e5e3d5099eac9e75e23056dbbb9add73f63b0a.tar.gz
hostap-00e5e3d5099eac9e75e23056dbbb9add73f63b0a.tar.bz2
Disable network block temporarily on authentication failures
If 4-way handshake fails due to likely PSK failure or if EAP authentication fails, disable the network block temporarily. Use longer duration if multiple consecutive failures are seen. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config_ssid.h')
-rw-r--r--wpa_supplicant/config_ssid.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/config_ssid.h b/wpa_supplicant/config_ssid.h
index 232c9c0..796b3d9 100644
--- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h
@@ -519,6 +519,16 @@ struct wpa_ssid {
* By default: 2
*/
int dtim_period;
+
+ /**
+ * auth_failures - Number of consecutive authentication failures
+ */
+ unsigned int auth_failures;
+
+ /**
+ * disabled_until - Network block disabled until this time if non-zero
+ */
+ struct os_time disabled_until;
};
#endif /* CONFIG_SSID_H */