iwlwifi: disable WoWLAN if !CONFIG_PM_SLEEP
authorJohannes Berg <johannes.berg@intel.com>
Mon, 4 Jun 2012 11:43:11 +0000 (13:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Jun 2012 19:27:07 +0000 (15:27 -0400)
commitfcb6ff5e2cb83e1de10631f6621f45ca3401bf61
tree90a63dbb028adc57f7c8c6c2ceac9d6fa4f21f39
parent794454ce72a298de6f4536ade597bdcc7dcde7c7
iwlwifi: disable WoWLAN if !CONFIG_PM_SLEEP

If CONFIG_PM_SLEEP is disabled, then iwlwifi doesn't
support suspend/resume handlers and thus mac80211
(correctly) refuses advertising WoWLAN. Disable
WoWLAN in the driver in this case.

Cc: stable@kernel.org
Reported-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-mac80211.c