aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-27 03:23:48 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-27 11:55:11 -0400
commitdfb89c56add259b72a9c68d6b2846c1cd8c4e4b6 (patch)
tree02a9c8a2995cb7f13b4461837cdf1e14648b1afb /include
parentcc45ae547b960b805ee0b201b3807e93a0060472 (diff)
cfg80211: don't allow WoWLAN support without CONFIG_PM
When CONFIG_PM is disabled, no device can possibly support WoWLAN since it can't go to sleep to start with. Due to this, mac80211 had even rejected the hardware registration. By making all the code and data for WoWLAN depend on CONFIG_PM we can promote this runtime error to a compile-time error. Add #ifdef around all WoWLAN code to remove it in systems that don't need it as they never suspend. Cc: Kalle Valo <kvalo@qca.qualcomm.com> Acked-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 061c01957e54..7d3cd3ce9a26 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2153,7 +2153,9 @@ struct wiphy {
2153 char fw_version[ETHTOOL_BUSINFO_LEN]; 2153 char fw_version[ETHTOOL_BUSINFO_LEN];
2154 u32 hw_version; 2154 u32 hw_version;
2155 2155
2156#ifdef CONFIG_PM
2156 struct wiphy_wowlan_support wowlan; 2157 struct wiphy_wowlan_support wowlan;
2158#endif
2157 2159
2158 u16 max_remain_on_channel_duration; 2160 u16 max_remain_on_channel_duration;
2159 2161