projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mac80211: save tx params per sdata
[cascardo/linux.git]
/
net
/
mac80211
/
pm.c
diff --git
a/net/mac80211/pm.c
b/net/mac80211/pm.c
index
f87e993
..
6326d34
100644
(file)
--- a/
net/mac80211/pm.c
+++ b/
net/mac80211/pm.c
@@
-34,6
+34,9
@@
int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
struct ieee80211_sub_if_data *sdata;
struct sta_info *sta;
+ if (!local->open_count)
+ goto suspend;
+
ieee80211_scan_cancel(local);
if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {