wifi: rtw89: coex: summarize Wi-Fi to BT scoreboard and inform BT one time a cycle
authorChing-Te Ku <ku920601@realtek.com>
Tue, 20 Sep 2022 01:09:37 +0000 (09:09 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 22 Sep 2022 06:11:45 +0000 (09:11 +0300)
commitba297a2556c57f9e0bce5e5cac0cbc6a5b32bfc1
treed62d6f1b69fa079c664dd2db55a001cfe862a894
parentf2fe93b387cf2713a5d1e088ebcc86617da4c8d7
wifi: rtw89: coex: summarize Wi-Fi to BT scoreboard and inform BT one time a cycle

If Wi-Fi driver send Wi-Fi status to BT via scoreboard too frequent in a
short moment, BT will loss some of them because of hardware response time.
To avoid this issue, change the code flow. Summarize the scoreboard changes
and if the value have changed, send the scoreboard to BT only once in
a coexistence processing cycle. It also can help to reduce driver I/O.

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/20220920010939.12173-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c
drivers/net/wireless/realtek/rtw89/core.h