ath9k: Add WoW related mac80211 callbacks
PATCH v4 9/10 ath9k: Add WoW related mac80211 callbacks
From: Mohammed Shafi Shajakhan <[email protected]>
add suspend/resume/set_wakeup callbacks to the driver
*suspend
- bail out only if all the conditions for configuring WoW. is fine, currently multivif case is not handled
- check for associated state.
- map wow triggers from user space data.
- add deauth/disassoc pattern and user defined pattern, for the later a list is maintained.
- store the interrupt mask before suspend, enabled beacon miss interrupt for WoW.
- configure WoW in the hardware by calling ath9k_hw_wow_enable.
*resume
- restore the interrupts based on the interrupt mask stored before suspend.
- call ath9k_hw_wow_wakeup to configure/restore the hardware.
- after wow wakeup clear away WoW events and query the WoW wakeup reason from the status register
*set_wakeup
- to call 'device_set_wakeup_enable' from cfg80211/mac80211 when wow is configured and as per Rafael/Johannnes the right way to do so rather in the driver suspend/resume call back
--- drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/main.c | 373 ++++++++++++++++++++++++++++++++ 2 files changed, 374 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/ath9k.h +1 -0
@@ -717,6 +717,7 @@ struct ath_softc {struct ath_ant_comb ant_comb;u8 ant_tx, ant_rx;struct dfs_pattern_detector *dfs_detector; +u32 wow_enabled;#ifdef CONFIG_PM_SLEEP atomic_t wow_got_bmiss_intr;
drivers/net/wireless/ath/ath9k/main.c +373 -0
391 lines not on this page · raw message
Signature · 1 line
1.7.0.4