diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2015-03-23 11:32:53 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-03-30 02:09:30 -0400 |
commit | 5fd3ac3c36f8b28f54ce3094e69bfc1d54ca0be9 (patch) | |
tree | f24ee44ff64844d3e3d7b6c5ebc646a8a02d269a /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | f5431e87ae0357bd72cfbfbe9552aa3d555c3800 (diff) |
ath10k: add WOW disconnect/magic-packet support
Add support for WOW disconnect and magic-packet.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 54430a1a3f73..a5ed54959a10 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2898,7 +2898,19 @@ void ath10k_wmi_event_rtt_error_report(struct ath10k *ar, struct sk_buff *skb) | |||
2898 | 2898 | ||
2899 | void ath10k_wmi_event_wow_wakeup_host(struct ath10k *ar, struct sk_buff *skb) | 2899 | void ath10k_wmi_event_wow_wakeup_host(struct ath10k *ar, struct sk_buff *skb) |
2900 | { | 2900 | { |
2901 | ath10k_dbg(ar, ATH10K_DBG_WMI, "WMI_WOW_WAKEUP_HOST_EVENTID\n"); | 2901 | struct wmi_wow_ev_arg ev = {}; |
2902 | int ret; | ||
2903 | |||
2904 | complete(&ar->wow.wakeup_completed); | ||
2905 | |||
2906 | ret = ath10k_wmi_pull_wow_event(ar, skb, &ev); | ||
2907 | if (ret) { | ||
2908 | ath10k_warn(ar, "failed to parse wow wakeup event: %d\n", ret); | ||
2909 | return; | ||
2910 | } | ||
2911 | |||
2912 | ath10k_dbg(ar, ATH10K_DBG_WMI, "wow wakeup host reason %s\n", | ||
2913 | wow_reason(ev.wake_reason)); | ||
2902 | } | 2914 | } |
2903 | 2915 | ||
2904 | void ath10k_wmi_event_dcs_interference(struct ath10k *ar, struct sk_buff *skb) | 2916 | void ath10k_wmi_event_dcs_interference(struct ath10k *ar, struct sk_buff *skb) |