aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-12-02 15:26:28 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-02 15:26:28 (GMT)
commita84ed99ee47e2e255ef6d1cf895b7efc419ca0f3 (patch)
tree8ad2850eb017e5547794f667e3d8801b7c2f483e /wpa_supplicant/sme.h
parente6b8efeba01851605691582cb1a65a4cbc92410d (diff)
downloadhostap-a84ed99ee47e2e255ef6d1cf895b7efc419ca0f3.zip
hostap-a84ed99ee47e2e255ef6d1cf895b7efc419ca0f3.tar.gz
hostap-a84ed99ee47e2e255ef6d1cf895b7efc419ca0f3.tar.bz2
SME: Deauthenticate to clear state after disassociation events
cfg80211/mac80211 can get into somewhat confused state if the AP only disassociates us and leaves us in authenticated state. For now, force the state to be cleared with deauthentication to avoid confusing errors if we try to associate with the AP again. This gets rid of 30 second delay (scan timeout) in cases where only a disassociation frame is received from the AP.
Diffstat (limited to 'wpa_supplicant/sme.h')
-rw-r--r--wpa_supplicant/sme.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.h b/wpa_supplicant/sme.h
index 2780041..5e8a8f4 100644
--- a/wpa_supplicant/sme.h
+++ b/wpa_supplicant/sme.h
@@ -28,6 +28,8 @@ void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
union wpa_event_data *data);
void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
union wpa_event_data *data);
+void sme_event_disassoc(struct wpa_supplicant *wpa_s,
+ union wpa_event_data *data);
#else /* CONFIG_SME */
@@ -64,6 +66,11 @@ static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
{
}
+static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
+ union wpa_event_data *data)
+{
+}
+
#endif /* CONFIG_SME */
#endif /* SME_H */