aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-08-20 14:02:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:25 -0400
commit84f6a01ce05fa671f7745b6e041e698a2d1f1341 (patch)
tree9d27eb23cf2c310b572193cbef290b6b84eb0259 /net/mac80211/ieee80211_i.h
parent5eb6ba83aa326e2f2cf9109d20df5d6a497b36bb (diff)
mac80211: fix configure_filter invocation after stop
Since configure_filter can sleep now, any multicast configuration needed to be postponed to a work struct. This, however, lead to a problem that we could queue the work, stop the device and then afterwards invoke configure_filter which may lead to driver hangs and is a bug. To fix this, we can just cancel the filter work since it's unnecessary to do after stopping the hw. Since there are various places that call drv_stop, and two of them do very similar things, the code for them can be put into a shared function at the same time. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Reported-by: Lennert Buytenhek <buytenh@wantstofly.org> Tested-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 455cc7ade9f5..fa930e01295f 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1086,6 +1086,7 @@ void ieee80211_process_measurement_req(struct ieee80211_sub_if_data *sdata,
1086 1086
1087/* Suspend/resume and hw reconfiguration */ 1087/* Suspend/resume and hw reconfiguration */
1088int ieee80211_reconfig(struct ieee80211_local *local); 1088int ieee80211_reconfig(struct ieee80211_local *local);
1089void ieee80211_stop_device(struct ieee80211_local *local);
1089 1090
1090#ifdef CONFIG_PM 1091#ifdef CONFIG_PM
1091int __ieee80211_suspend(struct ieee80211_hw *hw); 1092int __ieee80211_suspend(struct ieee80211_hw *hw);