iwlwifi: disable WoWLAN if !CONFIG_PM_SLEEP
authorJohannes Berg <johannes.berg@intel.com>
Mon, 4 Jun 2012 11:43:11 +0000 (13:43 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:12 +0000 (23:18 +0100)
commitadf49ce365294f2b4cba66ea216be4470d77c792
tree77b6d765e708198053ba2621774c29c16797d80b
parent6c6967906305e4681c555338d8ad8823e8487c42
iwlwifi: disable WoWLAN if !CONFIG_PM_SLEEP

commit fcb6ff5e2cb83e1de10631f6621f45ca3401bf61 upstream.

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.

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>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-agn.c