aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ath9k.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-10-28 02:52:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-12-02 14:24:54 -0500
commite60001e7167536d99bb2026367751704c623f9f8 (patch)
tree1f8baa634abac0bae7819856e0599880a68e963b /drivers/net/wireless/ath/ath9k/ath9k.h
parentbb00b1f786efc4c38d8e1e3e0e1996a59277a90e (diff)
ath9k: Use CONFIG_ATH9K_WOW
Move the WoW code to wow.c and compile it conditionally based on CONFIG_ATH9K_WOW. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h28
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
578int ath9k_suspend(struct ieee80211_hw *hw,
579 struct cfg80211_wowlan *wowlan);
580int ath9k_resume(struct ieee80211_hw *hw);
581void ath9k_set_wakeup(struct ieee80211_hw *hw, bool enabled);
582#else
583static inline int ath9k_suspend(struct ieee80211_hw *hw,
584 struct cfg80211_wowlan *wowlan)
585{
586 return 0;
587}
588static inline int ath9k_resume(struct ieee80211_hw *hw)
589{
590 return 0;
591}
592static 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;
984u8 ath9k_parse_mpdudensity(u8 mpdudensity); 1008u8 ath9k_parse_mpdudensity(u8 mpdudensity);
985irqreturn_t ath_isr(int irq, void *dev); 1009irqreturn_t ath_isr(int irq, void *dev);
986int ath_reset(struct ath_softc *sc); 1010int ath_reset(struct ath_softc *sc);
1011void ath_cancel_work(struct ath_softc *sc);
1012void ath_restart_work(struct ath_softc *sc);
987int ath9k_init_device(u16 devid, struct ath_softc *sc, 1013int 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);
989void ath9k_deinit_device(struct ath_softc *sc); 1015void ath9k_deinit_device(struct ath_softc *sc);