]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: unify the selection logic of RFK table when MCC
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 2 Jul 2024 12:44:52 +0000 (20:44 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 5 Jul 2024 01:51:34 +0000 (09:51 +0800)
commit8095364696d38092f34bbd3989b1a73b180a3aaf
tree286add7dbeab78f9a939ec72e5a7bdc8d8957f99
parent1e71be6a344628d3a6041dfcf26220ad5d66e699
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
drivers/net/wireless/realtek/rtw89/chan.c
drivers/net/wireless/realtek/rtw89/chan.h
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.c