[04/15] supplicant: Put upper bound on initial scan time delay.

Submitted by Ben Greear on March 6, 2014, 12:19 a.m.

Details

Message ID 1394065200-20377-4-git-send-email-greearb@candelatech.com
State Accepted
Headers show

Commit Message

Ben Greear March 6, 2014, 12:19 a.m.
From: Ben Greear <greearb@candelatech.com>

This makes stations associate much faster when using lots
of stations.

Signed-hostap: Ben Greear <greearb@candelatech.com>
---
 wpa_supplicant/wpa_supplicant.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Jouni Malinen March 11, 2014, 7:24 p.m.
On Wed, Mar 05, 2014 at 04:19:49PM -0800, greearb@candelatech.com wrote:
> This makes stations associate much faster when using lots
> of stations.

Thanks, applied.

Patch hide | download patch | download mbox

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 46195b1..4bd3d2d 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2674,9 +2674,9 @@  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