wifi: rtw89: coex: When Bluetooth not available don't set power/gain
authorChing-Te Ku <ku920601@realtek.com>
Thu, 29 Feb 2024 07:45:13 +0000 (15:45 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 5 Mar 2024 18:54:46 +0000 (20:54 +0200)
commitbb90a32c3c7d3475dc751b2c0208bd10838d4e31
treef297fb2a1e5270a63b788a84b0f1d21a5b8f4341
parenteae888cfb73483ccf8175da9bbc8cc2e313c7083
wifi: rtw89: coex: When Bluetooth not available don't set power/gain

If Bluetooth is working, it will update their info regularly. And the code
will increase the counters while the info updating. Use this counter to
judge is Bluetooth working or not. Don't need to set Bluetooth power or
gain when it is not working.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240229074514.219276-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c