mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
wifi: rtw88: Fix rtw_mac_power_switch() for RTL8814AU
rtw_mac_power_switch() checks bit 8 of REG_SYS_STATUS1 to see if the chip is powered on. This bit appears to be always on in the RTL8814AU, so ignore it. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/2f0fcffb-3067-4d95-a68c-f2f3a5a47921@gmail.com
This commit is contained in:
parent
e072210330
commit
e66bca1663
|
|
@ -291,6 +291,7 @@ static int rtw_mac_power_switch(struct rtw_dev *rtwdev, bool pwr_on)
|
|||
if (rtw_read8(rtwdev, REG_CR) == 0xea)
|
||||
cur_pwr = false;
|
||||
else if (rtw_hci_type(rtwdev) == RTW_HCI_TYPE_USB &&
|
||||
chip->id != RTW_CHIP_TYPE_8814A &&
|
||||
(rtw_read8(rtwdev, REG_SYS_STATUS1 + 1) & BIT(0)))
|
||||
cur_pwr = false;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user