1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2019-2022  Realtek Corporation
3  */
4 
5 #ifndef __RTW89_WOW_H__
6 #define __RTW89_WOW_H__
7 
8 enum rtw89_wake_reason {
9 	RTW89_WOW_RSN_RX_PTK_REKEY = 0x1,
10 	RTW89_WOW_RSN_RX_GTK_REKEY = 0x2,
11 	RTW89_WOW_RSN_RX_DEAUTH = 0x8,
12 	RTW89_WOW_RSN_DISCONNECT = 0x10,
13 	RTW89_WOW_RSN_RX_MAGIC_PKT = 0x21,
14 	RTW89_WOW_RSN_RX_PATTERN_MATCH = 0x23,
15 	RTW89_WOW_RSN_RX_NLO = 0x55,
16 };
17 
18 int rtw89_wow_suspend(struct rtw89_dev *rtwdev, struct cfg80211_wowlan *wowlan);
19 int rtw89_wow_resume(struct rtw89_dev *rtwdev);
20 
21 #endif
22