wifi: rtw89: unify the selection logic of RFK table when MCC

Driver will notify FW the target index of RFK table to use at some
moments. When MCC (multi-channel concurrent), the correctness of the
notification is especially important.

We now unify the selection logic of RFK table as below among chips.
1. check each table if it matches target channel
2. check all tables if any is idle by iterating active channels
3. replace the first table if all are busy unexpectedly

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240702124452.18747-2-pkshih@realtek.com
This commit is contained in:
Zong-Zhe Yang 2024-07-02 20:44:52 +08:00 • committed by Ping-Ke Shih
commit 8095364696
7 changed files with 141 additions and 26 deletions