From 3672877ed575f69b6948194584e777499eb8cb66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Thu, 6 Jan 2022 15:04:18 +0100
Subject: [PATCH 034/463] 8723cs: Clear wowlan_last_wake_reason prior to
 suspend

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 drivers/staging/rtl8723cs/os_dep/linux/os_intfs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/rtl8723cs/os_dep/linux/os_intfs.c b/drivers/staging/rtl8723cs/os_dep/linux/os_intfs.c
index c982c2d0447b8..86572d7c17da8 100644
--- a/drivers/staging/rtl8723cs/os_dep/linux/os_intfs.c
+++ b/drivers/staging/rtl8723cs/os_dep/linux/os_intfs.c
@@ -4904,6 +4904,8 @@ int rtw_suspend_wow(_adapter *padapter)
 #endif
 
 	if (pwrpriv->wowlan_mode == _TRUE) {
+		pwrpriv->wowlan_last_wake_reason = 0;
+
 		rtw_mi_netif_stop_queue(padapter);
 		#ifdef CONFIG_CONCURRENT_MODE
 		rtw_mi_buddy_netif_carrier_off(padapter);
-- 
2.46.0

