diff options
Diffstat (limited to 'net/mac80211/pm.c')
-rw-r--r-- | net/mac80211/pm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 3d16f4e61743..d1c021b62fe5 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c | |||
@@ -19,6 +19,10 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) | |||
19 | 19 | ||
20 | ieee80211_dfs_cac_cancel(local); | 20 | ieee80211_dfs_cac_cancel(local); |
21 | 21 | ||
22 | ieee80211_roc_purge(local, NULL); | ||
23 | |||
24 | ieee80211_del_virtual_monitor(local); | ||
25 | |||
22 | if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) { | 26 | if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) { |
23 | mutex_lock(&local->sta_mtx); | 27 | mutex_lock(&local->sta_mtx); |
24 | list_for_each_entry(sta, &local->sta_list, list) { | 28 | list_for_each_entry(sta, &local->sta_list, list) { |
@@ -101,10 +105,6 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) | |||
101 | drv_remove_interface(local, sdata); | 105 | drv_remove_interface(local, sdata); |
102 | } | 106 | } |
103 | 107 | ||
104 | sdata = rtnl_dereference(local->monitor_sdata); | ||
105 | if (sdata) | ||
106 | drv_remove_interface(local, sdata); | ||
107 | |||
108 | /* | 108 | /* |
109 | * We disconnected on all interfaces before suspend, all channel | 109 | * We disconnected on all interfaces before suspend, all channel |
110 | * contexts should be released. | 110 | * contexts should be released. |