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 <j@w1.fi>
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);