aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-08-25 23:09:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:46 -0400
commita13883b0bfcc435e4b7fbbde6334339aac8b1dc4 (patch)
tree6bafacad9aba09ed27bcc14df432cd9fddc50d75 /drivers/net/wireless/ath/ath9k/calib.h
parentb8ecd988b1670035a05035c553c08331214d6603 (diff)
ath9k: Reduce the frequency of PA offset calibration
PA calibration need not be done if the offset is not varying. The current logic does PA calibration even if the offset is the same. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.h b/drivers/net/wireless/ath/ath9k/calib.h
index 547e697b9055..019bcbba40ed 100644
--- a/drivers/net/wireless/ath/ath9k/calib.h
+++ b/drivers/net/wireless/ath/ath9k/calib.h
@@ -110,6 +110,13 @@ struct ath9k_nfcal_hist {
110 u8 invalidNFcount; 110 u8 invalidNFcount;
111}; 111};
112 112
113#define MAX_PACAL_SKIPCOUNT 8
114struct ath9k_pacal_info{
115 int32_t prev_offset; /* Previous value of PA offset value */
116 int8_t max_skipcount; /* Max No. of times PACAL can be skipped */
117 int8_t skipcount; /* No. of times the PACAL to be skipped */
118};
119
113bool ath9k_hw_reset_calvalid(struct ath_hw *ah); 120bool ath9k_hw_reset_calvalid(struct ath_hw *ah);
114void ath9k_hw_start_nfcal(struct ath_hw *ah); 121void ath9k_hw_start_nfcal(struct ath_hw *ah);
115void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan); 122void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan);