linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: cancel scan in ieee80211_restart_hw
@ 2010-08-30 19:14 John W. Linville
  2010-08-30 19:17 ` Johannes Berg
  0 siblings, 1 reply; 12+ messages in thread
From: John W. Linville @ 2010-08-30 19:14 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg, John W. Linville

This function exists to clean-up after a hardware error or something
similar.  The restart is accomplished using the same infrastructure used
to resume after a suspend.  The suspend path cancels running scans, so
it seems appropriate to do that here as well.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 net/mac80211/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 93194f6..8b43d85 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -305,7 +305,9 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw)
 
 	trace_api_restart_hw(local);
 
-	/* use this reason, __ieee80211_resume will unblock it */
+	ieee80211_scan_cancel(local);
+
+	/* use this reason, ieee80211_reconfig will unblock it */
 	ieee80211_stop_queues_by_reason(hw,
 		IEEE80211_QUEUE_STOP_REASON_SUSPEND);
 
-- 
1.7.2.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-09-02  8:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 19:14 [PATCH] mac80211: cancel scan in ieee80211_restart_hw John W. Linville
2010-08-30 19:17 ` Johannes Berg
2010-08-30 19:37   ` John W. Linville
2010-08-31  9:29     ` Johannes Berg
2010-08-31 19:25       ` [PATCH] mac80211: cancel scan in ieee80211_restart_hw if software scan pending John W. Linville
2010-09-01 10:29         ` Johannes Berg
2010-09-01 18:58           ` John W. Linville
2010-09-01 19:02             ` John W. Linville
2010-09-01 19:10             ` Johannes Berg
2010-09-01 20:17               ` John W. Linville
2010-09-02  8:29                 ` Johannes Berg
2010-09-01 20:17               ` [PATCH] mac80211: only cancel software-based scans on suspend John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).