wifi: rtw89: chan: manage active interfaces
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 22 Oct 2024 08:31:04 +0000 (16:31 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 29 Oct 2024 03:25:54 +0000 (11:25 +0800)
commit68ec751b288178de7d19b71ea61648269a35b8cd
tree9420f13c45f0e902bf9b04f375720dc62dc3aa4c
parentc39eed4bd70d1fa3541e35fe9774ebbb78adcea0
wifi: rtw89: chan: manage active interfaces

To set channel well for combination of MCC (multi-channel concurrency) and
impending MLO support, we need a method to manage relation between active
interfaces and channel contexts. If an interface owns at least one active
link, we call it an active interface. We add a list to manage active ones.

Basically, the list follows the active order except for the below case. To
be compatible with legacy behavior, the first interface that owns the first
channel context will put at the first entry in the list when recalculating.

Besides, MCC can also select and fill roles based on the above active list.

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