aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-12-19 09:58:00 (GMT)
committerJouni Malinen <j@w1.fi>2010-12-19 09:58:00 (GMT)
commit7d878ca7698473c0974276c06ed33563b22347eb (patch)
treef982d48efd9be84b63c8fc35e86ad6839dd0c848 /wpa_supplicant/sme.h
parent5efa9e2a4bc585ba3798a221d52c83d79a4659f9 (diff)
downloadhostap-7d878ca7698473c0974276c06ed33563b22347eb.zip
hostap-7d878ca7698473c0974276c06ed33563b22347eb.tar.gz
hostap-7d878ca7698473c0974276c06ed33563b22347eb.tar.bz2
Use SA Query procedure to recovery from AP/STA state mismatch
If a station received unprotected Deauthentication or Disassociation frame with reason code 6 or 7 from the current AP, there may be a mismatch in association state between the AP and STA. Verify whether this is the case by using SA Query procedure. If not response is received from the AP, deauthenticate. This implementation is only for user space SME with driver_nl80211.c.
Diffstat (limited to 'wpa_supplicant/sme.h')
-rw-r--r--wpa_supplicant/sme.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.h b/wpa_supplicant/sme.h
index 3ec8cc9..b5f150d 100644
--- a/wpa_supplicant/sme.h
+++ b/wpa_supplicant/sme.h
@@ -32,6 +32,11 @@ 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);
+void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s, const u8 *sa,
+ const u8 *da, u16 reason_code);
+void sme_stop_sa_query(struct wpa_supplicant *wpa_s);
+void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
+ const u8 *data, size_t len);
#else /* CONFIG_SME */
@@ -73,6 +78,12 @@ static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
{
}
+static inline void sme_event_unprot_disconnect(struct wpa_supplicant *wpa_s,
+ const u8 *sa, const u8 *da,
+ u16 reason_code)
+{
+}
+
#endif /* CONFIG_SME */
#endif /* SME_H */