linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: cancel scan_work in ieee80211_unregister_hw
@ 2011-05-12 17:09 Rajkumar Manoharan
  2011-05-12 17:25 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Rajkumar Manoharan @ 2011-05-12 17:09 UTC (permalink / raw)
  To: johannes, linville; +Cc: linux-wireless, Rajkumar Manoharan

scan_work is never stopped if the device was unplugged during
s/w scan.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
---
 net/mac80211/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 30e6a68..d2aa0be 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -964,6 +964,8 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
 	unregister_inetaddr_notifier(&local->ifa_notifier);
 #endif
 
+	cancel_delayed_work_sync(&local->scan_work);
+
 	rtnl_lock();
 
 	/*
-- 
1.7.5.1


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

end of thread, other threads:[~2011-05-13 17:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 17:09 [PATCH] mac80211: cancel scan_work in ieee80211_unregister_hw Rajkumar Manoharan
2011-05-12 17:25 ` Johannes Berg
2011-05-13  5:35   ` Rajkumar Manoharan
2011-05-13 10:53     ` Stanislaw Gruszka
2011-05-13 15:43     ` Johannes Berg
2011-05-13 17:18       ` Rajkumar Manoharan
2011-05-13 17:39         ` Johannes Berg

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).