wifi: rtw89: 8852b: rfk: add TSSI
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 12 Oct 2022 08:32:34 +0000 (16:32 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 19 Oct 2022 05:56:13 +0000 (08:56 +0300)
commit7f18a70d7b4d2a0e54ce542c222aeffc464ed9f3
treeb810e9d8fe2e30e6ad7747e6cd953da5240bfecd
parentf2abe804e8230ff20a834e204bde529935df5467
wifi: rtw89: 8852b: rfk: add TSSI

TSSI is transmitter signal strength indication, which is a close-loop
hardware circuit to feedback actual transmitting power as a reference for
next transmission.

When we setup channel to connect an AP, it does full calibration. When
switching bands or channels, it needs to reset hardware status to prevent
use wrong feedback of previous transmission.

To do TX power compensation reflecting current temperature, it loads tables
of compensation values into registers according to channel and band group.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221012083234.20224-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/reg.h
drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c
drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.h