wifi: rtw88: coex: Prevent doing I/O during Wi-Fi power saving
authorChing-Te Ku <ku920601@realtek.com>
Wed, 20 Mar 2024 07:50:47 +0000 (15:50 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 26 Mar 2024 01:19:29 +0000 (09:19 +0800)
commitc2c0de23f91b2cad0f1e35cbd8f3d5322e0f39fb
tree9b501f6e1e105a5b3947be57a224ebc2c81951a9
parent634cae97912782cd202971b37e45f22c62fe865c
wifi: rtw88: coex: Prevent doing I/O during Wi-Fi power saving

Fix Wi-Fi 2.4Ghz throughput drop over than 40% when Bluetooh is idle.
The code flow will read registers during Wi-Fi power saving, and be
returned, which results in incorrect counters to do mechanism judgment.
Adjust the code flow. Will leave Wi-Fi power save mode first then update
counters.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240320075047.31810-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/coex.c
drivers/net/wireless/realtek/rtw88/main.c