aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-03 19:07:16 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-10-06 16:26:01 -0400
commit6497827f53eb90dcf30c5d6414c83238f722e8ae (patch)
tree0d62c5406b55c30158daf0421f4e075f287e0ba9 /drivers/net/wireless/ath/ath9k/calib.c
parent373426cac0cbb7f762018127803dcd70838e2cdf (diff)
downloadkernel_samsung_smdk4412-6497827f53eb90dcf30c5d6414c83238f722e8ae.zip
kernel_samsung_smdk4412-6497827f53eb90dcf30c5d6414c83238f722e8ae.tar.gz
kernel_samsung_smdk4412-6497827f53eb90dcf30c5d6414c83238f722e8ae.tar.bz2
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/calib.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index 6351e76..6c38c72 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -186,7 +186,7 @@ bool ath9k_hw_reset_calvalid(struct ath_hw *ah)
return true;
}
- if (!ath9k_hw_iscal_supported(ah, currCal->calData->calType))
+ if (!(ah->supp_cals & currCal->calData->calType))
return true;
ath_print(common, ATH_DBG_CALIBRATE,