Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: ISC */
0002 /*
0003  * Copyright (c) 2015,2017 Qualcomm Atheros, Inc.
0004  */
0005 #ifndef _WOW_H_
0006 #define _WOW_H_
0007 
0008 struct ath10k_wow {
0009     u32 max_num_patterns;
0010     struct completion wakeup_completed;
0011     struct wiphy_wowlan_support wowlan_support;
0012 };
0013 
0014 #ifdef CONFIG_PM
0015 
0016 int ath10k_wow_init(struct ath10k *ar);
0017 int ath10k_wow_op_suspend(struct ieee80211_hw *hw,
0018               struct cfg80211_wowlan *wowlan);
0019 int ath10k_wow_op_resume(struct ieee80211_hw *hw);
0020 void ath10k_wow_op_set_wakeup(struct ieee80211_hw *hw, bool enabled);
0021 
0022 #else
0023 
0024 static inline int ath10k_wow_init(struct ath10k *ar)
0025 {
0026     return 0;
0027 }
0028 
0029 #endif /* CONFIG_PM */
0030 #endif /* _WOW_H_ */