aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index cb326d36be9c..ab1f464817af 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -696,8 +696,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
696 WLAN_CIPHER_SUITE_AES_CMAC 696 WLAN_CIPHER_SUITE_AES_CMAC
697 }; 697 };
698 698
699 if ((hw->wiphy->wowlan.flags || hw->wiphy->wowlan.n_patterns) && 699 if ((hw->wiphy->wowlan.flags || hw->wiphy->wowlan.n_patterns)
700 (!local->ops->suspend || !local->ops->resume)) 700#ifdef CONFIG_PM
701 && (!local->ops->suspend || !local->ops->resume)
702#endif
703 )
701 return -EINVAL; 704 return -EINVAL;
702 705
703 if (hw->max_report_rates == 0) 706 if (hw->max_report_rates == 0)