wifi: rtw89: coex: To avoid TWS serials A2DP lag, adjust slot arrangement
authorChing-Te Ku <ku920601@realtek.com>
Wed, 5 Feb 2025 01:32:32 +0000 (09:32 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 10 Feb 2025 03:19:32 +0000 (11:19 +0800)
commite53aa85e4b8a839a8a0daf283339357bdb0bcf1a
tree1ba784e1c22aa43e0b27a025878e4499b243db06
parent2e4c4717b3f6f019c71af984564b6e4d0ae8d0bd
wifi: rtw89: coex: To avoid TWS serials A2DP lag, adjust slot arrangement

The TWS(True wireless stereo) serials Bluetooth audio device need to keep
packet traffic not only with DUT, it also need to synchronize packet with
its assistant earbud. And all the BR/EDR Bluetooth device need to do page
scan to keep re-connect event sensitively between different DUT.
These behavior will make TWS Bluetooth device cost more time slot to keep
the good audio performance. This patch decrease half of Wi-Fi slot(from
40ms to 20ms) in a single cycle. Make the slot more flexible to prevent
audio lag. The single cycle will be shorter, then it will bring some slot
protection cost make Wi-Fi throughput decrease about 5%.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250205013233.10945-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c