diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-17 05:06:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:39 -0500 |
commit | f34639d323ded9d12692fb236e1774408f2a4a2b (patch) | |
tree | bda369d91f1dee7a734a3356383ffc913ca4ab9b /drivers/net/wireless/ath9k/hw.c | |
parent | 171387ef0a374e04a8167a3a1292e19fd1335f20 (diff) |
ath9k: Remove a few unused capability macros
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index eeee5b808154..2c0173a3cce0 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -3357,8 +3357,6 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
3357 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | 3357 | bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, |
3358 | u32 capability, u32 *result) | 3358 | u32 capability, u32 *result) |
3359 | { | 3359 | { |
3360 | const struct ath9k_hw_capabilities *pCap = &ah->caps; | ||
3361 | |||
3362 | switch (type) { | 3360 | switch (type) { |
3363 | case ATH9K_CAP_CIPHER: | 3361 | case ATH9K_CAP_CIPHER: |
3364 | switch (capability) { | 3362 | switch (capability) { |
@@ -3384,16 +3382,10 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | |||
3384 | case ATH9K_CAP_TKIP_SPLIT: | 3382 | case ATH9K_CAP_TKIP_SPLIT: |
3385 | return (ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) ? | 3383 | return (ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) ? |
3386 | false : true; | 3384 | false : true; |
3387 | case ATH9K_CAP_WME_TKIPMIC: | ||
3388 | return 0; | ||
3389 | case ATH9K_CAP_PHYCOUNTERS: | ||
3390 | return ah->has_hw_phycounters ? 0 : -ENXIO; | ||
3391 | case ATH9K_CAP_DIVERSITY: | 3385 | case ATH9K_CAP_DIVERSITY: |
3392 | return (REG_READ(ah, AR_PHY_CCK_DETECT) & | 3386 | return (REG_READ(ah, AR_PHY_CCK_DETECT) & |
3393 | AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV) ? | 3387 | AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV) ? |
3394 | true : false; | 3388 | true : false; |
3395 | case ATH9K_CAP_PHYDIAG: | ||
3396 | return true; | ||
3397 | case ATH9K_CAP_MCAST_KEYSRCH: | 3389 | case ATH9K_CAP_MCAST_KEYSRCH: |
3398 | switch (capability) { | 3390 | switch (capability) { |
3399 | case 0: | 3391 | case 0: |
@@ -3408,18 +3400,6 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | |||
3408 | } | 3400 | } |
3409 | } | 3401 | } |
3410 | return false; | 3402 | return false; |
3411 | case ATH9K_CAP_TSF_ADJUST: | ||
3412 | return (ah->misc_mode & AR_PCU_TX_ADD_TSF) ? | ||
3413 | true : false; | ||
3414 | case ATH9K_CAP_RFSILENT: | ||
3415 | if (capability == 3) | ||
3416 | return false; | ||
3417 | case ATH9K_CAP_ANT_CFG_2GHZ: | ||
3418 | *result = pCap->num_antcfg_2ghz; | ||
3419 | return true; | ||
3420 | case ATH9K_CAP_ANT_CFG_5GHZ: | ||
3421 | *result = pCap->num_antcfg_5ghz; | ||
3422 | return true; | ||
3423 | case ATH9K_CAP_TXPOW: | 3403 | case ATH9K_CAP_TXPOW: |
3424 | switch (capability) { | 3404 | switch (capability) { |
3425 | case 0: | 3405 | case 0: |
@@ -3472,12 +3452,6 @@ bool ath9k_hw_setcapability(struct ath_hw *ah, enum ath9k_capability_type type, | |||
3472 | else | 3452 | else |
3473 | ah->sta_id1_defaults &= ~AR_STA_ID1_MCAST_KSRCH; | 3453 | ah->sta_id1_defaults &= ~AR_STA_ID1_MCAST_KSRCH; |
3474 | return true; | 3454 | return true; |
3475 | case ATH9K_CAP_TSF_ADJUST: | ||
3476 | if (setting) | ||
3477 | ah->misc_mode |= AR_PCU_TX_ADD_TSF; | ||
3478 | else | ||
3479 | ah->misc_mode &= ~AR_PCU_TX_ADD_TSF; | ||
3480 | return true; | ||
3481 | default: | 3455 | default: |
3482 | return false; | 3456 | return false; |
3483 | } | 3457 | } |