summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/phy.h
diff options
context:
space:
mode:
authorTzu-En Huang <tehuang@realtek.com>2019-09-09 10:16:10 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-09-13 18:03:21 +0300
commit479c4ee931a677c3aa313a7b3757a71de073da8a (patch)
treec5eff5769cba13725599ded8f054564ce1eb7e24 /drivers/net/wireless/realtek/rtw88/phy.h
parentf27b886d0d062654be91360d45dc085a1a68fdf2 (diff)
downloadlinux-479c4ee931a677c3aa313a7b3757a71de073da8a.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/phy.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/phy.h b/drivers/net/wireless/realtek/rtw88/phy.h
index cc87b157f23e..e79b084628e7 100644
--- a/drivers/net/wireless/realtek/rtw88/phy.h
+++ b/drivers/net/wireless/realtek/rtw88/phy.h
@@ -146,4 +146,6 @@ rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path,
#define MASKBYTE3LOWNIBBLE 0x0f000000
#define MASKL3BYTES 0x00ffffff
+#define CCK_FA_AVG_RESET 0xffffffff
+
#endif