]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw88: fix WARNING:rtw_get_tx_power_params() during HW scan
authorChih-Kang Chang <gary.chang@realtek.com>
Tue, 9 Aug 2022 08:41:04 +0000 (16:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Aug 2022 05:48:46 +0000 (08:48 +0300)
commitd5b6920b16196623c5176e0090008fe9ad390e68
treecde980276d4a07768c61104894916c7cf7a325f8
parent02226ad86faa21f2cbda6363caa4798529cd259e
wifi: rtw88: fix WARNING:rtw_get_tx_power_params() during HW scan

During HW scan, the channel related feilds in hal struct changed partially.
If setting Tx power will get WARNING:rtw_get_tx_power_params() due to some
of fields in hal struct mismatch. Therefore, we fix to change all required
fields in hal struct when channel switch during HW scan.

Signed-off-by: Chih-Kang Chang <gary.chang@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/20220809084107.38137-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/fw.h
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.h