rtw88: 8821c: add cck pd settings
authorTzu-En Huang <tehuang@realtek.com>
Wed, 3 Jun 2020 09:42:14 +0000 (17:42 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 09:08:11 +0000 (12:08 +0300)
commit11fcb119a758e1e03ec77e20b386f4b93ae06601
tree841459c71dbd3a10c6225d91765e6dc98a123da4
parent1a94d93e648f6829a1dc30cb1ee4e1f92c7386e0
rtw88: 8821c: add cck pd settings

CCK PD can reduce the number of false alarm of the CCK rates.
It dynamically adjusts the power threshold and CS ratio.
The values are compared to the values of the previous level, if
the level is changed, set new values of power threshold and CS
ratio.

Implement rtw_chip_ops::cck_pd_set() for 8821c.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200603094218.19942-2-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/rtw8821c.c
drivers/net/wireless/realtek/rtw88/rtw8821c.h