]> www.infradead.org Git - linux.git/commit
wifi: rtw89: chan: refine MCC re-plan flow when unassign chanctx
authorZong-Zhe Yang <kevin_yang@realtek.com>
Sat, 27 Jul 2024 08:06:44 +0000 (16:06 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 2 Aug 2024 01:33:14 +0000 (09:33 +0800)
commit62c5a91b25f0cf610d55ee0cc9637eb8b670423f
treef1990f9de9208ba46578e59907cf68dec4ad4a66
parent0e735a4c6137262bcefe45bb52fde7b1f5fc6c4d
wifi: rtw89: chan: refine MCC re-plan flow when unassign chanctx

Originally during unassign-chanctx, MCC (multi-channel concurrency) is
re-planed before set-channel if need. But, we might calculate MCC stuffs
based on old channel info. And, the following set-channel might be racing
with FW MCC state mechanism. So, we refine this flow. Now, if MCC re-plan
is needed here, it will be done after set-channel.

Besides, to be more rigorous, we now ensure entity isn't paused before we
deal with MCC things here.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240727080650.12195-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/chan.c