aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 94f12581d0be..d908f78da42b 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2258,7 +2258,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
2258bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, 2258bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
2259 u32 capability, u32 *result) 2259 u32 capability, u32 *result)
2260{ 2260{
2261 struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah);
2262 switch (type) { 2261 switch (type) {
2263 case ATH9K_CAP_TKIP_MIC: 2262 case ATH9K_CAP_TKIP_MIC:
2264 switch (capability) { 2263 switch (capability) {
@@ -2286,21 +2285,6 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
2286 } 2285 }
2287 } 2286 }
2288 return false; 2287 return false;
2289 case ATH9K_CAP_TXPOW:
2290 switch (capability) {
2291 case 0:
2292 return 0;
2293 case 1:
2294 *result = regulatory->power_limit;
2295 return 0;
2296 case 2:
2297 *result = regulatory->max_power_level;
2298 return 0;
2299 case 3:
2300 *result = regulatory->tp_scale;
2301 return 0;
2302 }
2303 return false;
2304 case ATH9K_CAP_DS: 2288 case ATH9K_CAP_DS:
2305 return (AR_SREV_9280_20_OR_LATER(ah) && 2289 return (AR_SREV_9280_20_OR_LATER(ah) &&
2306 (ah->eep_ops->get_eeprom(ah, EEP_RC_CHAIN_MASK) == 1)) 2290 (ah->eep_ops->get_eeprom(ah, EEP_RC_CHAIN_MASK) == 1))