wifi: rtw89: chan: re-calculate MLO DBCC mode during setting channel
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 5 May 2025 07:24:33 +0000 (15:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sat, 10 May 2025 00:53:51 +0000 (08:53 +0800)
commit5b6247de57d76b26cbeded6c27dec52ac62c2f20
tree6554a7e054a2c3c25faab9380a7f709699517fd6
parenta8ba4acab7db25770272f270fa0c6c1d7e8124f9
wifi: rtw89: chan: re-calculate MLO DBCC mode during setting channel

Wi-Fi 7 chips have dual HW bands. After impending MLO support, they
can work with HW-[0] / HW-[1] / HW-[0,1] according to active links.
So, during setting channel, also re-calculate the MLO DBCC mode flag.
Then, leaf chip functions of setting channel can configure with HWs
based on current case.

Besides, tweak the initial and idle MLO DBCC mode of Wi-Fi 7 chips to
MLO_1_PLUS_1_1RF to work with dual HW bands. And, after disconnecting,
due to no active links, MLO DBCC mode will re-calculate to idle case,
i.e. MLO_1_PLUS_1_1RF.

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