]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: add dynamic cck pd mechanism
authorTzu-En Huang <tehuang@realtek.com>
Mon, 9 Sep 2019 07:16:10 +0000 (15:16 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Sep 2019 15:03:21 +0000 (18:03 +0300)
commit45b2c94eed4b9149423a6549de66910631c02edd
treec5eff5769cba13725599ded8f054564ce1eb7e24
parentbb171d78ca879316891126e9495f03a8bfdfb601
rtw88: add dynamic cck pd mechanism

This mechanism reduces the numbers of false alram in cck rate by
dynamically adjusting the value of power threshold and cs_ratio.
We determine the new value by three factors, which are rssi, false alarm
count and igi. Based on these factors, we define the current condition
into five levels. Compared to the previous level, if the level is changed,
we set the new values for power threshold and cs_ratio.

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>
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h
drivers/net/wireless/realtek/rtw88/rtw8822c.c