Skip to content
/ linux Public

Commit d880c9b

Browse files
Chin-Yen LeeSasha Levin
authored andcommitted
wifi: rtw89: wow: add reason codes for disassociation in WoWLAN mode
[ Upstream commit 2fd8f95 ] Some APs disconnect clients by sending a Disassociation frame rather than a Deauthentication frame. Since these frames use different reason codes in WoWLAN mode, this commit adds support for handling Disassociation to prevent missed disconnection events. Signed-off-by: Chin-Yen Lee <timlee@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260110022019.2254969-3-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f2f65b2 commit d880c9b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/net/wireless/realtek/rtw89/wow.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ static void rtw89_wow_show_wakeup_reason(struct rtw89_dev *rtwdev)
100100
reason = rtw89_read8(rtwdev, wow_reason_reg);
101101

102102
switch (reason) {
103+
case RTW89_WOW_RSN_RX_DISASSOC:
104+
wakeup.disconnect = true;
105+
rtw89_debug(rtwdev, RTW89_DBG_WOW, "WOW: Rx disassoc\n");
106+
break;
103107
case RTW89_WOW_RSN_RX_DEAUTH:
104108
wakeup.disconnect = true;
105109
rtw89_debug(rtwdev, RTW89_DBG_WOW, "WOW: Rx deauth\n");

drivers/net/wireless/realtek/rtw89/wow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
enum rtw89_wake_reason {
99
RTW89_WOW_RSN_RX_PTK_REKEY = 0x1,
1010
RTW89_WOW_RSN_RX_GTK_REKEY = 0x2,
11+
RTW89_WOW_RSN_RX_DISASSOC = 0x4,
1112
RTW89_WOW_RSN_RX_DEAUTH = 0x8,
1213
RTW89_WOW_RSN_DISCONNECT = 0x10,
1314
RTW89_WOW_RSN_RX_MAGIC_PKT = 0x21,

0 commit comments

Comments
 (0)