|
@@ -2258,7 +2258,6 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
|
|
|
bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
|
|
|
u32 capability, u32 *result)
|
|
|
{
|
|
|
- struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah);
|
|
|
switch (type) {
|
|
|
case ATH9K_CAP_TKIP_MIC:
|
|
|
switch (capability) {
|
|
@@ -2286,21 +2285,6 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type,
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
- case ATH9K_CAP_TXPOW:
|
|
|
- switch (capability) {
|
|
|
- case 0:
|
|
|
- return 0;
|
|
|
- case 1:
|
|
|
- *result = regulatory->power_limit;
|
|
|
- return 0;
|
|
|
- case 2:
|
|
|
- *result = regulatory->max_power_level;
|
|
|
- return 0;
|
|
|
- case 3:
|
|
|
- *result = regulatory->tp_scale;
|
|
|
- return 0;
|
|
|
- }
|
|
|
- return false;
|
|
|
case ATH9K_CAP_DS:
|
|
|
return (AR_SREV_9280_20_OR_LATER(ah) &&
|
|
|
(ah->eep_ops->get_eeprom(ah, EEP_RC_CHAIN_MASK) == 1))
|