wifi: rtw89: chan: add sub-entity swap function to cover replacing
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 6 Feb 2024 03:06:20 +0000 (11:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 12 Feb 2024 15:37:08 +0000 (17:37 +0200)
commit4f0beeefcce8ad1035d063a012db6cf510aa1ed1
tree2482c95df47f272c1cfa338cae54785e01079195
parent188045a85614433c8aa176f7899fcfb7c7183408
wifi: rtw89: chan: add sub-entity swap function to cover replacing

Originally, we replaced sub-entity of index 0 with another one in some
cases. However, we will need a swap here in following implementations.
So, we introduce it ahead and change code from replacing to swapping.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240206030624.23382-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/chan.c