Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab809bba authored by Sarada Prasanna Garnayak's avatar Sarada Prasanna Garnayak Committed by Gerrit - the friendly Code Review server
Browse files

ath10k: fix the invalid STA disconnect after wow resume



Clear the previous wakeup reason data and reset the wakeup
reason event field to avoid the STA disconnect with invalid
wow event.

CRs-Fixed: 2199100
Change-Id: If45b5ae6e6f93ab9068b59a5e31f46b829363936
Signed-off-by: default avatarSarada Prasanna Garnayak <sgarna@codeaurora.org>
parent 99b73ed5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;