aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-09-01 12:01:05 -0700
committerDavid S. Miller <davem@davemloft.net>2010-09-01 12:01:05 -0700
commita3f86ec002774f28b9b3d1d5e5532231e96a0861 (patch)
tree740ea059803c6e377e930b19bc8e37134e2b5051 /net/mac80211/main.c
parentb963ea89f00f13c648af4082e5efb2172d369727 (diff)
parent904879748d7439a6dabdc6be9aad983e216b027d (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 798a91b100c..ded5c3843e0 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -732,6 +732,12 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
rtnl_unlock();
+ /*
+ * Now all work items will be gone, but the
+ * timer might still be armed, so delete it
+ */
+ del_timer_sync(&local->work_timer);
+
cancel_work_sync(&local->reconfig_filter);
ieee80211_clear_tx_pending(local);