aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211_i.h1
-rw-r--r--net/mac80211/pm.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index fbb91f1aebb2..ad12c2a03a95 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -598,6 +598,7 @@ enum queue_stop_reason {
598 IEEE80211_QUEUE_STOP_REASON_PS, 598 IEEE80211_QUEUE_STOP_REASON_PS,
599 IEEE80211_QUEUE_STOP_REASON_CSA, 599 IEEE80211_QUEUE_STOP_REASON_CSA,
600 IEEE80211_QUEUE_STOP_REASON_AGGREGATION, 600 IEEE80211_QUEUE_STOP_REASON_AGGREGATION,
601 IEEE80211_QUEUE_STOP_REASON_SUSPEND,
601}; 602};
602 603
603struct ieee80211_master_priv { 604struct ieee80211_master_priv {
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index 44525f517077..c923ceb089a3 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -11,6 +11,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
11 struct ieee80211_if_init_conf conf; 11 struct ieee80211_if_init_conf conf;
12 struct sta_info *sta; 12 struct sta_info *sta;
13 13
14 ieee80211_stop_queues_by_reason(hw,
15 IEEE80211_QUEUE_STOP_REASON_SUSPEND);
16
14 flush_workqueue(local->hw.workqueue); 17 flush_workqueue(local->hw.workqueue);
15 18
16 /* disable keys */ 19 /* disable keys */
@@ -113,5 +116,8 @@ int __ieee80211_resume(struct ieee80211_hw *hw)
113 ieee80211_configure_filter(local); 116 ieee80211_configure_filter(local);
114 netif_addr_unlock_bh(local->mdev); 117 netif_addr_unlock_bh(local->mdev);
115 118
119 ieee80211_wake_queues_by_reason(hw,
120 IEEE80211_QUEUE_STOP_REASON_SUSPEND);
121
116 return 0; 122 return 0;
117} 123}