wow.h 643 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: ISC */
  2. /*
  3. * Copyright (c) 2015,2017 Qualcomm Atheros, Inc.
  4. */
  5. #ifndef _WOW_H_
  6. #define _WOW_H_
  7. struct ath10k_wow {
  8. u32 max_num_patterns;
  9. struct completion wakeup_completed;
  10. struct wiphy_wowlan_support wowlan_support;
  11. };
  12. #ifdef CONFIG_PM
  13. int ath10k_wow_init(struct ath10k *ar);
  14. int ath10k_wow_op_suspend(struct ieee80211_hw *hw,
  15. struct cfg80211_wowlan *wowlan);
  16. int ath10k_wow_op_resume(struct ieee80211_hw *hw);
  17. void ath10k_wow_op_set_wakeup(struct ieee80211_hw *hw, bool enabled);
  18. #else
  19. static inline int ath10k_wow_init(struct ath10k *ar)
  20. {
  21. return 0;
  22. }
  23. #endif /* CONFIG_PM */
  24. #endif /* _WOW_H_ */