wifi: rtw89: 8922a: rfk: implement chip_ops to call RF calibrations
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 2 Feb 2024 03:06:40 +0000 (11:06 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 6 Feb 2024 18:05:23 +0000 (20:05 +0200)
commitff146ec22d5fe136b71b31703b1bea540ffc4d5f
tree292c89f0cb718b5eef8a96cb7d9a10ecb0f666fc
parentbd6f5f27cb2c2b0635cc9212fb82e6f112e7e681
wifi: rtw89: 8922a: rfk: implement chip_ops to call RF calibrations

Calling RF calibrations when interface up, connection, switching bands and
going to scan.

For 8922AE, RF calibrations are moved to firmware, so use H2C commands to
trigger RF calibrations and wait for a C2H event to indicate completion.
Then, do next RF calibration.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240202030642.108385-10-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.h
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/rtw8922a.c