From patchwork Tue Nov 12 20:49:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Shmidt X-Patchwork-Id: 290775 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 78A442C0084 for ; Wed, 13 Nov 2013 07:50:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 1F9769C0C3; Tue, 12 Nov 2013 15:50:38 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N8RZpuX9cEMi; Tue, 12 Nov 2013 15:50:37 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 1BBB29C123; Tue, 12 Nov 2013 15:50:33 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id EAC379C123 for ; Tue, 12 Nov 2013 15:50:31 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wm3N1dc-4PKQ for ; Tue, 12 Nov 2013 15:50:26 -0500 (EST) Received: from mail-qc0-f201.google.com (mail-qc0-f201.google.com [209.85.216.201]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id DBBF09C110 for ; Tue, 12 Nov 2013 15:50:26 -0500 (EST) Received: by mail-qc0-f201.google.com with SMTP id s13so240601qcv.4 for ; Tue, 12 Nov 2013 12:50:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:date:subject:to:message-id; bh=+7DkDajanwiW40EUPX73Uaq/sNjw7UtOeMDjsWbMSY4=; b=T+Rr1MUi5kCeuER6Fj12OOOYsI2clALfIqx8b+o6NL1tJZN9kKEpBUmL4ercZqqMWV Z/eqhveQp1UvduFTqLc42YAK0jgeupwrK6Lub1sDOQQnqfLlE99EfCzNWjd+J+zdk5d2 RE+Q/qTe6geHndfCFKCNi7w4Q8F3GcIlqkk4hDpHc8OM3b/hyL52XAqQPXlHXLV/4DZl QU40VCeaQpWPQdiaOfyQ/KCArY9HdoK+Ysm9pq+kpxFF5tMr4GoCJJKKoZoJQVzt9CfM RkVmAoumKaoiuszS2AMVqCGOENgU2pOSIDB8lWfwIi2Oz7fUCdryCgPtj/bsYldUTttf x8Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:subject:to:message-id; bh=+7DkDajanwiW40EUPX73Uaq/sNjw7UtOeMDjsWbMSY4=; b=Gog8dp0pmzUHcnSMrWgyM1kWMqNaEOdKpCIIG5RzTyjYNyNP8w8gEek835XXRUgAHl j4g8SL0HXzC7MEBPeuvfopDCMigjUbVYEm/mxPtIMXwtorqektGsfghsaOOHXX9rltub ur3QfzConE2BA/as75who2GXx1vDDPnlTSj7BjYobbUaIQ+4Mf2q9b4CCudFIzAd3RwB mNQEcTs5cOTrYON4d8PdX+gj7Vwpj9GBwVH2l/Pq6cNtvYQk+eDzwQrDcUOGX0yoRluC pkx0UpvOYxhjjSYKF1k8/A/ht3wazFdXOpCpiBFJlogQduYlQKk3F3oL7ulBylJ1ZQQI AvCw== X-Gm-Message-State: ALoCoQmaW7IMGFl0nP5uMcJ3FaVj745TdUZG9q/ipqDvEk4VmRMv4J9YHfbEvsG9yreKf823RFchiTWvkNVWPETMKN6eWt7qs3vbX3dWSo1YSScGo94z3GLjZ2v+SD6+t178e+NG7vyuUvF0qMu2A+7A9HLIj81NZCEbn3jM8MfVLaMXl4C32nCTZjvtxOfrDiNy+Ty8VsD06QFH9Q5mxJR44ennIQrgiVxBB4XglWiiNYw2p97jotc= X-Received: by 10.236.101.103 with SMTP id a67mr3572611yhg.25.1384289426549; Tue, 12 Nov 2013 12:50:26 -0800 (PST) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id a24si2339221yhl.1.2013.11.12.12.50.26 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Nov 2013 12:50:26 -0800 (PST) Received: from ushik.mtv.corp.google.com (ushik.mtv.corp.google.com [172.18.120.113]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 65D4C31C1D0 for ; Tue, 12 Nov 2013 12:50:26 -0800 (PST) Received: by ushik.mtv.corp.google.com (Postfix, from userid 57417) id 03BFC13FECA; Tue, 12 Nov 2013 12:50:25 -0800 (PST) From: Dmitry Shmidt Date: Tue, 12 Nov 2013 12:49:24 -0800 Subject: [PATCH] Postpone scan for 500 ms if in the middle of association To: hostap@lists.shmoo.com Message-Id: <20131112205026.03BFC13FECA@ushik.mtv.corp.google.com> X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Signed-off-by: Dmitry Shmidt --- wpa_supplicant/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 4493772..2754276 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2122,7 +2122,7 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s, fast_reconnect_ssid = wpa_s->current_ssid; #endif /* CONFIG_NO_SCAN_PROCESSING */ } else if (wpa_s->wpa_state >= WPA_ASSOCIATING) - wpa_supplicant_req_scan(wpa_s, 0, 100000); + wpa_supplicant_req_scan(wpa_s, 0, 500000); else wpa_dbg(wpa_s, MSG_DEBUG, "Do not request new " "immediate scan");