diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 6 |
2 files changed, 0 insertions, 21 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 9321931a4c2f..62597f4ca319 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -2257,21 +2257,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
2257 | return 0; | 2257 | return 0; |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | ||
2261 | u32 capability, u32 *result) | ||
2262 | { | ||
2263 | switch (type) { | ||
2264 | case ATH9K_CAP_DS: | ||
2265 | return (AR_SREV_9280_20_OR_LATER(ah) && | ||
2266 | (ah->eep_ops->get_eeprom(ah, EEP_RC_CHAIN_MASK) == 1)) | ||
2267 | ? false : true; | ||
2268 | default: | ||
2269 | return false; | ||
2270 | } | ||
2271 | } | ||
2272 | EXPORT_SYMBOL(ath9k_hw_getcapability); | ||
2273 | |||
2274 | |||
2275 | /****************************/ | 2260 | /****************************/ |
2276 | /* GPIO / RFKILL / Antennae */ | 2261 | /* GPIO / RFKILL / Antennae */ |
2277 | /****************************/ | 2262 | /****************************/ |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 16b35cdce593..5ecbfcf7470a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -206,10 +206,6 @@ enum ath9k_hw_caps { | |||
206 | ATH9K_HW_CAP_PAPRD = BIT(22), | 206 | ATH9K_HW_CAP_PAPRD = BIT(22), |
207 | }; | 207 | }; |
208 | 208 | ||
209 | enum ath9k_capability_type { | ||
210 | ATH9K_CAP_DS | ||
211 | }; | ||
212 | |||
213 | struct ath9k_hw_capabilities { | 209 | struct ath9k_hw_capabilities { |
214 | u32 hw_caps; /* ATH9K_HW_CAP_* from ath9k_hw_caps */ | 210 | u32 hw_caps; /* ATH9K_HW_CAP_* from ath9k_hw_caps */ |
215 | DECLARE_BITMAP(wireless_modes, ATH9K_MODE_MAX); /* ATH9K_MODE_* */ | 211 | DECLARE_BITMAP(wireless_modes, ATH9K_MODE_MAX); /* ATH9K_MODE_* */ |
@@ -852,8 +848,6 @@ int ath9k_hw_init(struct ath_hw *ah); | |||
852 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | 848 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, |
853 | bool bChannelChange); | 849 | bool bChannelChange); |
854 | int ath9k_hw_fill_cap_info(struct ath_hw *ah); | 850 | int ath9k_hw_fill_cap_info(struct ath_hw *ah); |
855 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | ||
856 | u32 capability, u32 *result); | ||
857 | u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan); | 851 | u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan); |
858 | 852 | ||
859 | /* Key Cache Management */ | 853 | /* Key Cache Management */ |