]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: rtw89: pass chanctx_idx to rtw89_btc_{path_}phymap()
authorZong-Zhe Yang <kevin_yang@realtek.com>
Sat, 27 Jul 2024 08:06:50 +0000 (16:06 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 2 Aug 2024 01:38:34 +0000 (09:38 +0800)
commit11b227901ffaf9f6b4eebd3ed708d03ec91e764c
tree0017b61887cf34ffd6bcafaea2a55e2b1ef6787c
parentdb0dbe26f48a4cf3a46967fb8a75ee1abd1d59ab
wifi: rtw89: pass chanctx_idx to rtw89_btc_{path_}phymap()

Originally, rtw89_btc_phymap() and rtw89_btc_path_phymap() access chan
with hard-code RTW89_CHANCTX_0. But, they are problematic when the chip
supports multiple channels.

So, change their prototype and pass chanctx_idx ahead. Let callers still
pass RTW89_CHANCTX_0 for now, but we will refine callers in the following.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240727080650.12195-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.h
drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8852bt_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8922a.c