diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index b39ffac3b93a..9927dcaa5593 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -570,6 +570,30 @@ static inline void ath_fill_led_pin(struct ath_softc *sc) | |||
570 | } | 570 | } |
571 | #endif | 571 | #endif |
572 | 572 | ||
573 | /************************/ | ||
574 | /* Wake on Wireless LAN */ | ||
575 | /************************/ | ||
576 | |||
577 | #ifdef CONFIG_ATH9K_WOW | ||
578 | int ath9k_suspend(struct ieee80211_hw *hw, | ||
579 | struct cfg80211_wowlan *wowlan); | ||
580 | int ath9k_resume(struct ieee80211_hw *hw); | ||
581 | void ath9k_set_wakeup(struct ieee80211_hw *hw, bool enabled); | ||
582 | #else | ||
583 | static inline int ath9k_suspend(struct ieee80211_hw *hw, | ||
584 | struct cfg80211_wowlan *wowlan) | ||
585 | { | ||
586 | return 0; | ||
587 | } | ||
588 | static inline int ath9k_resume(struct ieee80211_hw *hw) | ||
589 | { | ||
590 | return 0; | ||
591 | } | ||
592 | static inline void ath9k_set_wakeup(struct ieee80211_hw *hw, bool enabled) | ||
593 | { | ||
594 | } | ||
595 | #endif /* CONFIG_ATH9K_WOW */ | ||
596 | |||
573 | /*******************************/ | 597 | /*******************************/ |
574 | /* Antenna diversity/combining */ | 598 | /* Antenna diversity/combining */ |
575 | /*******************************/ | 599 | /*******************************/ |
@@ -785,7 +809,7 @@ struct ath_softc { | |||
785 | bool tx99_state; | 809 | bool tx99_state; |
786 | s16 tx99_power; | 810 | s16 tx99_power; |
787 | 811 | ||
788 | #ifdef CONFIG_PM_SLEEP | 812 | #ifdef CONFIG_ATH9K_WOW |
789 | atomic_t wow_got_bmiss_intr; | 813 | atomic_t wow_got_bmiss_intr; |
790 | atomic_t wow_sleep_proc_intr; /* in the middle of WoW sleep ? */ | 814 | atomic_t wow_sleep_proc_intr; /* in the middle of WoW sleep ? */ |
791 | u32 wow_intr_before_sleep; | 815 | u32 wow_intr_before_sleep; |
@@ -984,6 +1008,8 @@ extern bool is_ath9k_unloaded; | |||
984 | u8 ath9k_parse_mpdudensity(u8 mpdudensity); | 1008 | u8 ath9k_parse_mpdudensity(u8 mpdudensity); |
985 | irqreturn_t ath_isr(int irq, void *dev); | 1009 | irqreturn_t ath_isr(int irq, void *dev); |
986 | int ath_reset(struct ath_softc *sc); | 1010 | int ath_reset(struct ath_softc *sc); |
1011 | void ath_cancel_work(struct ath_softc *sc); | ||
1012 | void ath_restart_work(struct ath_softc *sc); | ||
987 | int ath9k_init_device(u16 devid, struct ath_softc *sc, | 1013 | int ath9k_init_device(u16 devid, struct ath_softc *sc, |
988 | const struct ath_bus_ops *bus_ops); | 1014 | const struct ath_bus_ops *bus_ops); |
989 | void ath9k_deinit_device(struct ath_softc *sc); | 1015 | void ath9k_deinit_device(struct ath_softc *sc); |