]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5fc5e986b744f55d46fb69cc201eb735cc4e0e3
tree27fb48e360f153129fadb4dd5abdb4d91bb2e7eb
parent8d639a5b7aa3207e1b2fd91a0ae60945c015f9a1
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