OSDN Git Service

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)
commit479c4ee931a677c3aa313a7b3757a71de073da8a
treec5eff5769cba13725599ded8f054564ce1eb7e24
parentf27b886d0d062654be91360d45dc085a1a68fdf2
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