]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: roc: dynamically handle link id and link instance index
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 28 Apr 2025 11:24:55 +0000 (19:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 5 May 2025 01:50:00 +0000 (09:50 +0800)
commitd0e6c18fff72d87ba73960377e5094780b6ba229
tree379021613e11c7096e6be8365f024cec11788fc1
parent6173b636c72286631de6849c88ebfc54fcbc94a2
wifi: rtw89: roc: dynamically handle link id and link instance index

Originally, a macro, RTW89_ROC_BY_LINK_INDEX, is used to decide the link
which deals with the ROC process. Before enabling MLO support, it's fine
to hard-code RTW89_ROC_BY_LINK_INDEX as 0 since the link instance-0 (on
HW-0) is always active. But, for the impending enablement of MLO support,
tweak the leaf functions to dynamically handle ROC link instance index.

Besides, in the follow-up, ROC caller will get a designated link and will
then drop RTW89_ROC_BY_LINK_INDEX.

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