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 <j@w1.fi>
This commit is contained in:
parent
702621e6dd
commit
9599ccc2dd
1 changed files with 1 additions and 0 deletions
|
@ -871,6 +871,7 @@ static void wpas_wps_reassoc(struct wpa_supplicant *wpa_s,
|
||||||
struct wpa_ssid *ssid;
|
struct wpa_ssid *ssid;
|
||||||
struct wpa_bss *bss;
|
struct wpa_bss *bss;
|
||||||
|
|
||||||
|
wpa_s->after_wps = 0;
|
||||||
wpa_s->known_wps_freq = 0;
|
wpa_s->known_wps_freq = 0;
|
||||||
if (bssid) {
|
if (bssid) {
|
||||||
bss = wpa_bss_get_bssid_latest(wpa_s, bssid);
|
bss = wpa_bss_get_bssid_latest(wpa_s, bssid);
|
||||||
|
|
Loading…
Reference in a new issue