diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-01-06 09:30:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 13:51:28 -0500 |
commit | 81ac3462d346ee7aaf037a35156b0a7a354e98cf (patch) | |
tree | 8ad3bd87fc62db3b5a0bd69c5b4a2fc8613414b9 /net/mac80211/scan.c | |
parent | 34a6eddbabd704b3c7dae9362234552267573be2 (diff) |
mac80211: fix a few work bugs
Kalle and Lennert reported problems with the new work
code, and at least Kalle's problem I was able to trace
to a missing jiffies initialisation.
I also ran into a problem where occasionally I couldn't
connect, which seems fixed with kicking the work items
after scanning.
Finally, also add some sanity checking code to verify
that we're not adding work items while an interface is
down -- that case could lead to something similar to
what Lennert was seeing.
There still seems to be a race condition that we're
trying to figure out separately.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index a4c63d4e6845..30cb62bb45b3 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -284,6 +284,7 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) | |||
284 | ieee80211_mlme_notify_scan_completed(local); | 284 | ieee80211_mlme_notify_scan_completed(local); |
285 | ieee80211_ibss_notify_scan_completed(local); | 285 | ieee80211_ibss_notify_scan_completed(local); |
286 | ieee80211_mesh_notify_scan_completed(local); | 286 | ieee80211_mesh_notify_scan_completed(local); |
287 | ieee80211_queue_work(&local->hw, &local->work_work); | ||
287 | } | 288 | } |
288 | EXPORT_SYMBOL(ieee80211_scan_completed); | 289 | EXPORT_SYMBOL(ieee80211_scan_completed); |
289 | 290 | ||