aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.h
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-19 17:02:11 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-19 17:02:11 +0100
commit9a8d42cc8220fc9ac449ff85b3fa7e9b3d95a881 (patch)
treeffe2efd9a074ef038d08edb5a9fa93a719571352 /drivers/net/wireless/ath/ath9k/calib.h
parentae6dc76bd96441a26b3714c9cf936c38463d4d9c (diff)
downloadkernel_samsung_smdk4412-9a8d42cc8220fc9ac449ff85b3fa7e9b3d95a881.zip
kernel_samsung_smdk4412-9a8d42cc8220fc9ac449ff85b3fa7e9b3d95a881.tar.gz
kernel_samsung_smdk4412-9a8d42cc8220fc9ac449ff85b3fa7e9b3d95a881.tar.bz2
backport ath driver from 3.4 kernel
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.h b/drivers/net/wireless/ath/ath9k/calib.h
index 1bef41d..1f2e01a 100644
--- a/drivers/net/wireless/ath/ath9k/calib.h
+++ b/drivers/net/wireless/ath/ath9k/calib.h
@@ -19,9 +19,11 @@
#include "hw.h"
-#define AR_PHY_CCA_FILTERWINDOW_LENGTH_INIT 3
#define AR_PHY_CCA_FILTERWINDOW_LENGTH 5
+/* Internal noise floor can vary by about 6db depending on the frequency */
+#define ATH9K_NF_CAL_NOISE_THRESH 6
+
#define NUM_NF_READINGS 6
#define ATH9K_NF_CAL_HIST_MAX 5
@@ -108,6 +110,7 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah,
void ath9k_hw_bstuck_nfcal(struct ath_hw *ah);
void ath9k_hw_reset_calibration(struct ath_hw *ah,
struct ath9k_cal_list *currCal);
+s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan);
#endif /* CALIB_H */