rtw89: coex: Not to send H2C when WL not ready and count H2C
authorChing-Te Ku <ku920601@realtek.com>
Thu, 9 Dec 2021 08:32:24 +0000 (16:32 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 14 Dec 2021 18:36:00 +0000 (20:36 +0200)
commitf8028a9a92f2b8653658f2ad9cc1fb849873ba5a
tree4a660f8f085c0c1b0d89db98c5dd24690b1cfa06
parentb3131a41ac6fcda0a636b3c7d1e05914107d8840
rtw89: coex: Not to send H2C when WL not ready and count H2C

Prevent to send H2C request to FW when BTC is not initialized or
WL is under power saving. Add counter to count the H2C success or fail.

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://lore.kernel.org/r/20211209083229.10815-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c