From: Jouni Malinen Date: Sun, 31 Mar 2013 14:17:08 +0000 (+0300) Subject: WPS: Clear after_wps on new WPS connection X-Git-Tag: aosp-kk-from-upstream~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9599ccc2dd069fa06f93f118cea17b7af177aa53;p=thirdparty%2Fhostap.git WPS: Clear after_wps on new WPS connection The after_wps counter could have potentially be left in its old non-zero value in some WPS sequences which could result in a single-channel scan being used based on obsolete information. Clear after_wps in wpas_wps_reassoc() to make sure this does not happen. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 086de923a..8ffc69296 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -871,6 +871,7 @@ static void wpas_wps_reassoc(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid; struct wpa_bss *bss; + wpa_s->after_wps = 0; wpa_s->known_wps_freq = 0; if (bssid) { bss = wpa_bss_get_bssid_latest(wpa_s, bssid);