cfg80211/mac80211: enable proper device_set_wakeup_enable handling
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Apr 2012 13:05:25 +0000 (15:05 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Apr 2012 20:23:57 +0000 (16:23 -0400)
commit6d52563f2bc217cbdccb97068f5b6176352f01f2
tree27fb48e360f153129fadb4dd5abdb4d91bb2e7eb
parentda951c2417ec1020d0d00813da36f38e395994e9
cfg80211/mac80211: enable proper device_set_wakeup_enable handling

In WoWLAN, we only get the triggers when we actually get
to suspend. As a consequence, drivers currently don't
know that the device should enable wakeup. However, the
device_set_wakeup_enable() API is intended to be called
when the wakeup is enabled, not later when needed.

Add a new set_wakeup() call to cfg80211 and mac80211 to
allow drivers to properly call device_set_wakeup_enable.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/driver-ops.h
net/mac80211/driver-trace.h
net/wireless/core.c
net/wireless/nl80211.c