aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-10-25 21:02:14 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-10 16:40:54 (GMT)
commit03ed0a52393710be6bdae657d1b36efa146520e5 (patch)
treeb72780ce72de665cb3eaa90cb643411d1a615167 /wpa_supplicant/events.c
parent8823178c965531ce500337abf58eb51dcc8d9fee (diff)
downloadhostap-03ed0a52393710be6bdae657d1b36efa146520e5.zip
hostap-03ed0a52393710be6bdae657d1b36efa146520e5.tar.gz
hostap-03ed0a52393710be6bdae657d1b36efa146520e5.tar.bz2
WNM: Ignore WNM-Sleep Mode Response if WNM-Sleep Mode has not been used
The AP is not expected to send out a WNM-Sleep Mode Response frame without the STA trying to use WNM-Sleep Mode. Drop such unexpected responses to reduce unnecessary processing of the frame. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index aab752c..06d08e7 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -303,6 +303,7 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
wpa_s->key_mgmt = 0;
wpas_rrm_reset(wpa_s);
+ wpa_s->wnmsleep_used = 0;
}