diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index efbc3478e..fd01bb8fa 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -431,8 +431,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx) if (prev_state != wpa_s->wpa_state) wpa_supplicant_set_state(wpa_s, prev_state); wpa_supplicant_req_scan(wpa_s, 1, 0); - } else - wpa_s->scan_runs++; + } }