aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c15
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h6
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
2260bool 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}
2272EXPORT_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
209enum ath9k_capability_type {
210 ATH9K_CAP_DS
211};
212
213struct ath9k_hw_capabilities { 209struct 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);
852int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, 848int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
853 bool bChannelChange); 849 bool bChannelChange);
854int ath9k_hw_fill_cap_info(struct ath_hw *ah); 850int ath9k_hw_fill_cap_info(struct ath_hw *ah);
855bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
856 u32 capability, u32 *result);
857u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan); 851u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan);
858 852
859/* Key Cache Management */ 853/* Key Cache Management */