From: Jouni Malinen Date: Tue, 29 Nov 2011 18:05:58 +0000 (+0200) Subject: Increase min sched_scan interval from 2 to 10 seconds X-Git-Tag: aosp-jb-start~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5bae473155f075709b4ea1b4671f2836fadc0a;p=thirdparty%2Fhostap.git Increase min sched_scan interval from 2 to 10 seconds Trying to run sched_scan round every two seconds by defaults sounds way too frequent since dualband cards are unlikely to be able to complete the full scan cycle in two seconds. For now, set the hardcoded value to 10 seconds to make this somewhat more reasonable. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 675c4467f..8e9728348 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -774,7 +774,7 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s) if (!ssid || !wpa_s->prev_sched_ssid) { wpa_dbg(wpa_s, MSG_DEBUG, "Beginning of SSID list"); - wpa_s->sched_scan_interval = 2; + wpa_s->sched_scan_interval = 10; wpa_s->sched_scan_timeout = max_sched_scan_ssids * 2; wpa_s->first_sched_scan = 1; ssid = wpa_s->conf->ssid;