diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 1 | ||||
-rw-r--r-- | net/mac80211/iface.c | 5 | ||||
-rw-r--r-- | net/mac80211/pm.c | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 490990e3fc38..1a89c80e6407 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1043,6 +1043,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev) | |||
1043 | list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) | 1043 | list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) |
1044 | sta_info_flush_defer(vlan); | 1044 | sta_info_flush_defer(vlan); |
1045 | sta_info_flush_defer(sdata); | 1045 | sta_info_flush_defer(sdata); |
1046 | synchronize_net(); | ||
1046 | rcu_barrier(); | 1047 | rcu_barrier(); |
1047 | list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { | 1048 | list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { |
1048 | sta_info_flush_cleanup(vlan); | 1049 | sta_info_flush_cleanup(vlan); |
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 146b1320af4e..9daa64ee337e 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -839,11 +839,12 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, | |||
839 | * | 839 | * |
840 | * sta_info_flush_cleanup() requires rcu_barrier() | 840 | * sta_info_flush_cleanup() requires rcu_barrier() |
841 | * first to wait for the station call_rcu() calls | 841 | * first to wait for the station call_rcu() calls |
842 | * to complete, here we need at least sychronize_rcu() | 842 | * to complete, and we also need synchronize_rcu() |
843 | * it to wait for the RX path in case it is using the | 843 | * to wait for the RX path in case it is using the |
844 | * interface and enqueuing frames at this very time on | 844 | * interface and enqueuing frames at this very time on |
845 | * another CPU. | 845 | * another CPU. |
846 | */ | 846 | */ |
847 | synchronize_rcu(); | ||
847 | rcu_barrier(); | 848 | rcu_barrier(); |
848 | sta_info_flush_cleanup(sdata); | 849 | sta_info_flush_cleanup(sdata); |
849 | 850 | ||
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 4431f0ffe157..7fc5d0d8149a 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c | |||
@@ -38,6 +38,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) | |||
38 | IEEE80211_QUEUE_STOP_REASON_SUSPEND); | 38 | IEEE80211_QUEUE_STOP_REASON_SUSPEND); |
39 | 39 | ||
40 | /* flush out all packets and station cleanup call_rcu()s */ | 40 | /* flush out all packets and station cleanup call_rcu()s */ |
41 | synchronize_net(); | ||
41 | rcu_barrier(); | 42 | rcu_barrier(); |
42 | 43 | ||
43 | ieee80211_flush_queues(local, NULL); | 44 | ieee80211_flush_queues(local, NULL); |