summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-08-26 08:39:40 +0530
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)
downloadblackbird-op-linux-a13883b0bfcc435e4b7fbbde6334339aac8b1dc4.tar.gz
blackbird-op-linux-a13883b0bfcc435e4b7fbbde6334339aac8b1dc4.zip
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 {
u8 invalidNFcount;
};
+#define MAX_PACAL_SKIPCOUNT 8
+struct ath9k_pacal_info{
+ int32_t prev_offset; /* Previous value of PA offset value */
+ int8_t max_skipcount; /* Max No. of times PACAL can be skipped */
+ int8_t skipcount; /* No. of times the PACAL to be skipped */
+};
+
bool ath9k_hw_reset_calvalid(struct ath_hw *ah);
void ath9k_hw_start_nfcal(struct ath_hw *ah);
void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan);
OpenPOWER on IntegriCloud