Browse Source

wpa_supplicant: Put upper bound on initial scan time delay

This makes stations associate much faster when using lots of stations.
In addition, this avoids delaying the initial scan continuously for
dynamic interface removal/addition cases.

Signed-hostap: Ben Greear <greearb@candelatech.com>
Ben Greear 11 years ago
parent
commit
5d0d72a3e5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      wpa_supplicant/wpa_supplicant.c

+ 3 - 2
wpa_supplicant/wpa_supplicant.c

@@ -2687,9 +2687,10 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
 			interface_count = 0;
 		}
 		if (!wpa_s->p2p_mgmt &&
-		    wpa_supplicant_delayed_sched_scan(wpa_s, interface_count,
+		    wpa_supplicant_delayed_sched_scan(wpa_s,
+						      interface_count % 3,
 						      100000))
-			wpa_supplicant_req_scan(wpa_s, interface_count,
+			wpa_supplicant_req_scan(wpa_s, interface_count % 3,
 						100000);
 		interface_count++;
 	} else