wifi: rtw89: use passed channel in set_tx_shape_dfir()
authorZong-Zhe Yang <kevin_yang@realtek.com>
Wed, 1 Feb 2023 03:20:57 +0000 (11:20 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:18:42 +0000 (19:18 +0200)
commit764f07f4565da0c0f94f24d18f9d6f5ddb39ccd8
treecff95db5a5e37af63e17a428abebada9422d6292
parent3712888e3dba5df2b4f3fb3ba87e20bac6afc7c0
wifi: rtw89: use passed channel in set_tx_shape_dfir()

In path of setting channel and setting TX power, the rtw89_chan instance
to be used is controlled by top and passed down. The set_tx_shape_dfir()
is in path of setting TX power, so it should use the passed rtw89_chan
instead of querying it itself. Otherwise, it might encounter mismatch
between parameters if multi-channel.

For example,
rtw89_8852ce 0000:04:00.0: set tx shape dfir by unknown ch: 155 on 2GHz

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://lore.kernel.org/r/20230201032057.7349-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852c.c