X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=net%2Fmac80211%2Fpm.c;h=28a3a0957c9e35af7ffc7b2efb12f1611b7e360b;hb=4854f175c3182816d906c4bc34be5f30556346a5;hp=00a43a70e1fc30eedb09ab9dcdde8af2a9c89673;hpb=11d62caf93cf12ce80ff8304849887666ec8880a;p=cascardo%2Flinux.git diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 00a43a70e1fc..28a3a0957c9e 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -178,8 +178,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) WARN_ON(!list_empty(&local->chanctx_list)); /* stop hardware - this must stop RX */ - if (local->open_count) - ieee80211_stop_device(local); + ieee80211_stop_device(local); suspend: local->suspended = true;