Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bizarro.watchtower.local X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Original-To: brian@murraytwins.com Delivered-To: x10490972@homiemail-mx12.g.dreamhost.com Received: from mail.murraytwins.com [208.97.132.231] by bizarro.watchtower.local with IMAP (fetchmail-6.3.9-rc2) for (single-drop); Fri, 26 Aug 2011 07:25:03 -0700 (PDT) Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by homiemail-mx12.g.dreamhost.com (Postfix) with ESMTP id 5AE692780CA for ; Fri, 26 Aug 2011 07:21:55 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by fiordland.canonical.com (Postfix) with ESMTP id CB115A18AC8 for ; Fri, 26 Aug 2011 14:21:54 +0000 (UTC) Received: from gac.canonical.com ([91.189.90.20]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QwxIA-0001Cc-Mr for ; Fri, 26 Aug 2011 14:21:54 +0000 Received: from gac.canonical.com (localhost [127.0.0.1]) by gac.canonical.com (Postfix) with ESMTPS id A472F5C0690 for ; Fri, 26 Aug 2011 14:21:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Aug 2011 14:21:54 -0000 From: Launchpad Bug Tracker <638303@bugs.launchpad.net> To: brian@ubuntu.com Reply-To: Bug 638303 <638303@bugs.launchpad.net> Sender: bounces@canonical.com X-Launchpad-Bug: product=wpasupplicant; status=Confirmed; importance=Medium; assignee=None; X-Launchpad-Bug: distribution=ubuntu; sourcepackage=wpasupplicant; component=main; status=In Progress; importance=Low; assignee=canonical-foundations; X-Launchpad-Bug-Tags: oem-services patch-forwarded-upstream X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: gema.gomez kvalo mterry X-Launchpad-Bug-Reporter: Michael Terry (mterry) X-Launchpad-Bug-Modifier: Gema Gomez (gema.gomez) References: <20100914180353.7774.99994.malonedeb@wampee.canonical.com> Subject: [Bug 638303] [NEW] Don't give up scanning so easily X-Launchpad-Message-Rationale: Assignee @canonical-foundations Message-Id: <20110826142154.25512.32020.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13794"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: e3dee3497c65ee55f6a840d7fcd90292194d3d96 Content-Length: 2110 Gema Gomez (gema.gomez) has assigned this bug to you for wpasupplicant in U= buntu: Binary package hint: wpasupplicant I was working on a machine with a broadcom wifi card. It used the proprietary wl.o driver. I noticed that when I resumed from suspend or pressed the F2 button (which on this machine is an rfkill button) to enable wifi, reconnection times with NetworkManager were around 30s. This seemed too long to me. Investigation revealed that wpasupplicant was scanning after the card was brought up in these scenarios, but failed because (I assume) the wl.o driver was not ready yet. Then it gave up scanning. NM never saw new access points, so didn't bother trying to connect. Then it waited 20s, like it does, before asking wpasupplicant to try scanning again. This scan succeeded and NM proceeded to connect. I came up with the following patch to get wpasupplicant to try a little harder to scan and forwarded it upstream (see linked bug): Index: wpasupplicant-0.6.9/wpa_supplicant/events.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- wpasupplicant-0.6.9.orig/wpa_supplicant/events.c 2010-09-13 15:28:08.00= 0000000 -0400 +++ wpasupplicant-0.6.9/wpa_supplicant/events.c 2010-09-13 15:28:14.0000000= 00 -0400 @@ -619,6 +619,7 @@ wpa_printf(MSG_DEBUG, "Failed to get scan results - try " "scanning again"); timeout =3D 1; + wpa_s->scan_req =3D 1; /* Force scan again */ goto req_scan; } = This is a tracking bug for the issue. ** Affects: wpasupplicant Importance: Medium Status: Confirmed ** Affects: wpasupplicant (Ubuntu) Importance: Low Assignee: Canonical Foundations Team (canonical-foundations) Status: In Progress ** Tags: oem-services patch-forwarded-upstream -- = Don't give up scanning so easily https://bugs.launchpad.net/bugs/638303 You received this bug notification because you are a member of Canonical Fo= undations Team, which is a bug assignee.