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>
This commit is contained in:

committed by
John W. Linville

parent
373426cac0
commit
6497827f53
@@ -276,12 +276,6 @@ static inline void ath9k_hw_setup_calibration(struct ath_hw *ah,
|
||||
ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal);
|
||||
}
|
||||
|
||||
static inline bool ath9k_hw_iscal_supported(struct ath_hw *ah,
|
||||
enum ath9k_cal_types calType)
|
||||
{
|
||||
return ath9k_hw_private_ops(ah)->iscal_supported(ah, calType);
|
||||
}
|
||||
|
||||
static inline void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning)
|
||||
{
|
||||
ath9k_hw_private_ops(ah)->ani_reset(ah, is_scanning);
|
||||
|
Reference in New Issue
Block a user