ath6kl: Add wmi functions to configure WOW mode and host sleep mode
It will be used in WOW suspend/resume functions to active/deactivate WOW suspend mode. Signed-off-by: Raja Mani <rmani@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
@@ -1818,6 +1818,42 @@ struct wmi_set_ip_cmd {
|
||||
__le32 ips[MAX_IP_ADDRS];
|
||||
} __packed;
|
||||
|
||||
enum ath6kl_wow_filters {
|
||||
WOW_FILTER_SSID = BIT(0),
|
||||
WOW_FILTER_OPTION_MAGIC_PACKET = BIT(2),
|
||||
WOW_FILTER_OPTION_EAP_REQ = BIT(3),
|
||||
WOW_FILTER_OPTION_PATTERNS = BIT(4),
|
||||
WOW_FILTER_OPTION_OFFLOAD_ARP = BIT(5),
|
||||
WOW_FILTER_OPTION_OFFLOAD_NS = BIT(6),
|
||||
WOW_FILTER_OPTION_OFFLOAD_GTK = BIT(7),
|
||||
WOW_FILTER_OPTION_8021X_4WAYHS = BIT(8),
|
||||
WOW_FILTER_OPTION_NLO_DISCVRY = BIT(9),
|
||||
WOW_FILTER_OPTION_NWK_DISASSOC = BIT(10),
|
||||
WOW_FILTER_OPTION_GTK_ERROR = BIT(11),
|
||||
WOW_FILTER_OPTION_TEST_MODE = BIT(15),
|
||||
};
|
||||
|
||||
enum ath6kl_host_mode {
|
||||
ATH6KL_HOST_MODE_AWAKE,
|
||||
ATH6KL_HOST_MODE_ASLEEP,
|
||||
};
|
||||
|
||||
struct wmi_set_host_sleep_mode_cmd {
|
||||
__le32 awake;
|
||||
__le32 asleep;
|
||||
} __packed;
|
||||
|
||||
enum ath6kl_wow_mode {
|
||||
ATH6KL_WOW_MODE_DISABLE,
|
||||
ATH6KL_WOW_MODE_ENABLE,
|
||||
};
|
||||
|
||||
struct wmi_set_wow_mode_cmd {
|
||||
__le32 enable_wow;
|
||||
__le32 filter;
|
||||
__le16 host_req_delay;
|
||||
} __packed;
|
||||
|
||||
struct wmi_add_wow_pattern_cmd {
|
||||
u8 filter_list_id;
|
||||
u8 filter_size;
|
||||
@@ -2285,6 +2321,11 @@ int ath6kl_wmi_test_cmd(struct wmi *wmi, void *buf, size_t len);
|
||||
s32 ath6kl_wmi_get_rate(s8 rate_index);
|
||||
|
||||
int ath6kl_wmi_set_ip_cmd(struct wmi *wmi, struct wmi_set_ip_cmd *ip_cmd);
|
||||
int ath6kl_wmi_set_host_sleep_mode_cmd(struct wmi *wmi, u8 if_idx,
|
||||
enum ath6kl_host_mode host_mode);
|
||||
int ath6kl_wmi_set_wow_mode_cmd(struct wmi *wmi, u8 if_idx,
|
||||
enum ath6kl_wow_mode wow_mode,
|
||||
u32 filter, u16 host_req_delay);
|
||||
int ath6kl_wmi_add_wow_pattern_cmd(struct wmi *wmi, u8 if_idx,
|
||||
u8 list_id, u8 filter_size,
|
||||
u8 filter_offset, u8 *filter, u8 *mask);
|
||||
|
Reference in New Issue
Block a user