wifi: rtw89: Fix TX fail with A2DP after scanning
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 21 Oct 2024 06:32:19 +0000 (14:32 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 25 Oct 2024 02:24:38 +0000 (10:24 +0800)
commitf16c40acd31901ad0ba2554b60e0e2b0c7b59cde
treeede6dc9a91e550ca5444ed072e4ae15988f8d2e5
parent9dffa44171d9735733418b23585559c1cffc3bd8
wifi: rtw89: Fix TX fail with A2DP after scanning

There might be some racing between BT and WiFi after scan. Since
one of the TX related register will be modified by both FW and
rtw89_set_channel() in driver, which could cause Tx fail. Reorder
the calling sequence to only notify coexistence mechanism after
rtw89_set_channel() is called, so that there are no concurrent
operations.

Fixes: 5f499ce69b8d ("wifi: rtw89: pause/proceed MCC for ROC and HW scan")
Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241021063219.22613-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c