]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: don't allow WoWLAN support without CONFIG_PM
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jun 2012 07:23:48 +0000 (09:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jun 2012 15:55:11 +0000 (17:55 +0200)
commitc71c99a4353f36bfe2d629cb0edc0b6a9893cc5e
tree02a9c8a2995cb7f13b4461837cdf1e14648b1afb
parenta3488802c2f7c8bf9b82cca5f5e74120884cd1f9
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>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ti/wlcore/main.c
include/net/cfg80211.h
net/mac80211/main.c
net/wireless/core.c
net/wireless/nl80211.c