From: Johannes Berg Date: Wed, 27 Jun 2012 07:23:48 +0000 (+0200) Subject: cfg80211: don't allow WoWLAN support without CONFIG_PM X-Git-Tag: v3.6-rc1~125^2~57^2~208^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb89c56add259b72a9c68d6b2846c1cd8c4e4b6;p=pandora-kernel.git 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 Acked-by: Luciano Coelho Signed-off-by: Johannes Berg --- Reading git-diff-tree failed