Don't give up scanning so easily
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wpa_supplicant |
Confirmed
|
Medium
|
|||
wpasupplicant (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
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-
=======
--- wpasupplicant-
+++ wpasupplicant-
@@ -619,6 +619,7 @@
wpa_
"scanning again");
timeout = 1;
+ wpa_s->scan_req = 1; /* Force scan again */
goto req_scan;
}
This is a tracking bug for the issue.
Related branches
- Mathieu Trudel-Lapierre: Needs Fixing
- Ubuntu branches: Pending requested
-
Diff: 159 lines (+91/-0)6 files modified.pc/applied-patches (+1/-0)
debian/changelog (+12/-0)
debian/patches/fix_driver_wext_for_broadcom_wl.patch (+62/-0)
debian/patches/series (+1/-0)
src/drivers/driver_wext.c (+14/-0)
src/drivers/driver_wext.h (+1/-0)
tags: | added: oem-services patch-forwarded-upstream |
Changed in wpasupplicant: | |
status: | Unknown → Confirmed |
Changed in wpasupplicant: | |
importance: | Unknown → Medium |
Changed in wpasupplicant (Ubuntu): | |
status: | Triaged → In Progress |
Changed in wpasupplicant (Ubuntu): | |
status: | In Progress → Triaged |
assignee: | Canonical Foundations Team (canonical-foundations) → nobody |
I sent a patch for 0.7 branch to the list:
http:// lists.shmoo. com/pipermail/ hostap/ 2010-October/ 021809. html