]> git.ipfire.org Git - thirdparty/openwrt.git/blob
092a7677bd44eaf5ad1285803cad8d10bb662ce1
[thirdparty/openwrt.git] /
1 From e66bca16638ee59e997f9d9a3711b3ae587d04d9 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Tue, 18 Feb 2025 01:28:59 +0200
4 Subject: [PATCH] wifi: rtw88: Fix rtw_mac_power_switch() for RTL8814AU
5
6 rtw_mac_power_switch() checks bit 8 of REG_SYS_STATUS1 to see if the
7 chip is powered on. This bit appears to be always on in the RTL8814AU,
8 so ignore it.
9
10 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
11 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
12 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
13 Link: https://patch.msgid.link/2f0fcffb-3067-4d95-a68c-f2f3a5a47921@gmail.com
14 ---
15 drivers/net/wireless/realtek/rtw88/mac.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/drivers/net/wireless/realtek/rtw88/mac.c
19 +++ b/drivers/net/wireless/realtek/rtw88/mac.c
20 @@ -291,6 +291,7 @@ static int rtw_mac_power_switch(struct r
21 if (rtw_read8(rtwdev, REG_CR) == 0xea)
22 cur_pwr = false;
23 else if (rtw_hci_type(rtwdev) == RTW_HCI_TYPE_USB &&
24 + chip->id != RTW_CHIP_TYPE_8814A &&
25 (rtw_read8(rtwdev, REG_SYS_STATUS1 + 1) & BIT(0)))
26 cur_pwr = false;
27 else