aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-03 13:07:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-06 16:26:01 -0400
commit6497827f53eb90dcf30c5d6414c83238f722e8ae (patch)
tree0d62c5406b55c30158daf0421f4e075f287e0ba9 /drivers/net/wireless/ath/ath9k/hw.h
parent373426cac0cbb7f762018127803dcd70838e2cdf (diff)
ath9k_hw: clean up calibration flags
The calibration actual calibration flags are only used by the per chip family source files, so it makes more sense to define them in those files instead of globally. That way the code has to test for less flags. Also instead of using a separate callback for testing whether a particular calibration type is supported, simply adjust ah->supp_cals in the calibration init which is called right after the hardware reset, before any of the calibrations are run. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 235cb5357a22..246c707cea00 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -535,8 +535,6 @@ struct ath_hw_private_ops {
535 bool (*macversion_supported)(u32 macversion); 535 bool (*macversion_supported)(u32 macversion);
536 void (*setup_calibration)(struct ath_hw *ah, 536 void (*setup_calibration)(struct ath_hw *ah,
537 struct ath9k_cal_list *currCal); 537 struct ath9k_cal_list *currCal);
538 bool (*iscal_supported)(struct ath_hw *ah,
539 enum ath9k_cal_types calType);
540 538
541 /* PHY ops */ 539 /* PHY ops */
542 int (*rf_set_freq)(struct ath_hw *ah, 540 int (*rf_set_freq)(struct ath_hw *ah,
@@ -689,7 +687,7 @@ struct ath_hw {
689 u32 atim_window; 687 u32 atim_window;
690 688
691 /* Calibration */ 689 /* Calibration */
692 enum ath9k_cal_types supp_cals; 690 u32 supp_cals;
693 struct ath9k_cal_list iq_caldata; 691 struct ath9k_cal_list iq_caldata;
694 struct ath9k_cal_list adcgain_caldata; 692 struct ath9k_cal_list adcgain_caldata;
695 struct ath9k_cal_list adcdc_caldata; 693 struct ath9k_cal_list adcdc_caldata;