diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-03-06 20:57:57 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-06 20:57:57 -0800 |
| commit | c70b573a906492da481b2ffb2de1bb10f329ddd2 (patch) | |
| tree | 7eaaf5f9ab9e6133a8a70c8112393eba9d6cb52d | |
| parent | 25eb087db9793ee4c8df2d157e9a111eedaa9290 (diff) | |
| parent | ab809bba589a3c0f6c8cbce723d033d8290a75f0 (diff) | |
Merge "ath10k: fix the invalid STA disconnect after wow resume"
| -rw-r--r-- | drivers/net/wireless/ath/ath10k/wow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wow.c b/drivers/net/wireless/ath/ath10k/wow.c index 74a9206c9f12..262a1a19196e 100644 --- a/drivers/net/wireless/ath/ath10k/wow.c +++ b/drivers/net/wireless/ath/ath10k/wow.c @@ -471,6 +471,7 @@ static void ath10k_wow_op_report_wakeup_reason(struct ath10k *ar) struct cfg80211_wowlan_wakeup *wakeup = &ar->wow.wakeup; struct ath10k_vif *arvif; + memset(wakeup, 0, sizeof(struct cfg80211_wowlan_wakeup)); switch (ar->wow.wakeup_reason) { case WOW_REASON_UNSPECIFIED: wakeup = NULL; @@ -488,6 +489,7 @@ static void ath10k_wow_op_report_wakeup_reason(struct ath10k *ar) wakeup->gtk_rekey_failure = true; break; } + ar->wow.wakeup_reason = WOW_REASON_UNSPECIFIED; if (wakeup) { wakeup->pattern_idx = -1; |
