From: Jouni Malinen Date: Sun, 11 Apr 2010 16:56:23 +0000 (+0300) Subject: Try to start a new scan more quickly after driver rejection X-Git-Tag: hostap_0_7_2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c4c9c507892741277f5ecc4c2016b49dc9e82f6;p=thirdparty%2Fhostap.git Try to start a new scan more quickly after driver rejection This speeds up recovery from some cases where the driver may refuse a new scan request command temporarily. --- diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 610d56b45..458b98122 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -425,7 +425,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx) wpa_printf(MSG_WARNING, "Failed to initiate AP scan."); if (prev_state != wpa_s->wpa_state) wpa_supplicant_set_state(wpa_s, prev_state); - wpa_supplicant_req_scan(wpa_s, 10, 0); + wpa_supplicant_req_scan(wpa_s, 1, 0); } else wpa_s->scan_runs++; }