diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2010-11-23 14:49:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-30 13:53:45 -0500 |
commit | acb091d67c5c9649cf5d25055ef6fd64239a6762 (patch) | |
tree | 43c2df5f954cd28c6917709496d269296d22f658 /drivers/net/wireless/ath/ath5k/reset.c | |
parent | 73a06a683455f472cc09ad249064c66a41e29e39 (diff) |
ath5k: Cleanup turbo channel flags
* Clean up CHANNEL_T(URBO), use AR5K_BWMODE_40MHZ instead
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/reset.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reset.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index c72910015454..7d8ef8decf00 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -834,7 +834,7 @@ static void ath5k_hw_commit_eeprom_settings(struct ath5k_hw *ah, | |||
834 | AR5K_PHY_NF_SVAL(ee->ee_noise_floor_thr[ee_mode]), | 834 | AR5K_PHY_NF_SVAL(ee->ee_noise_floor_thr[ee_mode]), |
835 | AR5K_PHY_NFTHRES); | 835 | AR5K_PHY_NFTHRES); |
836 | 836 | ||
837 | if ((channel->hw_value & CHANNEL_TURBO) && | 837 | if ((ah->ah_bwmode == AR5K_BWMODE_40MHZ) && |
838 | (ah->ah_ee_version >= AR5K_EEPROM_VERSION_5_0)) { | 838 | (ah->ah_ee_version >= AR5K_EEPROM_VERSION_5_0)) { |
839 | /* Switch settling time (Turbo) */ | 839 | /* Switch settling time (Turbo) */ |
840 | AR5K_REG_WRITE_BITS(ah, AR5K_PHY_SETTLING, | 840 | AR5K_REG_WRITE_BITS(ah, AR5K_PHY_SETTLING, |
@@ -1019,21 +1019,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1019 | freq = AR5K_INI_RFGAIN_2GHZ; | 1019 | freq = AR5K_INI_RFGAIN_2GHZ; |
1020 | ee_mode = AR5K_EEPROM_MODE_11B; | 1020 | ee_mode = AR5K_EEPROM_MODE_11B; |
1021 | break; | 1021 | break; |
1022 | case CHANNEL_T: | ||
1023 | mode = AR5K_MODE_11A_TURBO; | ||
1024 | freq = AR5K_INI_RFGAIN_5GHZ; | ||
1025 | ee_mode = AR5K_EEPROM_MODE_11A; | ||
1026 | break; | ||
1027 | case CHANNEL_TG: | ||
1028 | if (ah->ah_version == AR5K_AR5211) { | ||
1029 | ATH5K_ERR(ah->ah_sc, | ||
1030 | "TurboG mode not available on 5211"); | ||
1031 | return -EINVAL; | ||
1032 | } | ||
1033 | mode = AR5K_MODE_11G_TURBO; | ||
1034 | freq = AR5K_INI_RFGAIN_2GHZ; | ||
1035 | ee_mode = AR5K_EEPROM_MODE_11G; | ||
1036 | break; | ||
1037 | case CHANNEL_XR: | 1022 | case CHANNEL_XR: |
1038 | if (ah->ah_version == AR5K_AR5211) { | 1023 | if (ah->ah_version == AR5K_AR5211) { |
1039 | ATH5K_ERR(ah->ah_sc, | 1024 | ATH5K_ERR(ah->ah_sc, |