diff options
-rw-r--r-- | drivers/net/wireless/ath5k/caps.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/caps.c b/drivers/net/wireless/ath5k/caps.c index 150f5ed204a0..367a6c7d3cc7 100644 --- a/drivers/net/wireless/ath5k/caps.c +++ b/drivers/net/wireless/ath5k/caps.c | |||
@@ -85,7 +85,8 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah) | |||
85 | /* Enable 802.11b if a 2GHz capable radio (2111/5112) is | 85 | /* Enable 802.11b if a 2GHz capable radio (2111/5112) is |
86 | * connected */ | 86 | * connected */ |
87 | if (AR5K_EEPROM_HDR_11B(ee_header) || | 87 | if (AR5K_EEPROM_HDR_11B(ee_header) || |
88 | AR5K_EEPROM_HDR_11G(ee_header)) { | 88 | (AR5K_EEPROM_HDR_11G(ee_header) && |
89 | ah->ah_version != AR5K_AR5211)) { | ||
89 | /* 2312 */ | 90 | /* 2312 */ |
90 | ah->ah_capabilities.cap_range.range_2ghz_min = 2412; | 91 | ah->ah_capabilities.cap_range.range_2ghz_min = 2412; |
91 | ah->ah_capabilities.cap_range.range_2ghz_max = 2732; | 92 | ah->ah_capabilities.cap_range.range_2ghz_max = 2732; |
@@ -94,7 +95,8 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah) | |||
94 | __set_bit(AR5K_MODE_11B, | 95 | __set_bit(AR5K_MODE_11B, |
95 | ah->ah_capabilities.cap_mode); | 96 | ah->ah_capabilities.cap_mode); |
96 | 97 | ||
97 | if (AR5K_EEPROM_HDR_11G(ee_header)) | 98 | if (AR5K_EEPROM_HDR_11G(ee_header) && |
99 | ah->ah_version != AR5K_AR5211) | ||
98 | __set_bit(AR5K_MODE_11G, | 100 | __set_bit(AR5K_MODE_11G, |
99 | ah->ah_capabilities.cap_mode); | 101 | ah->ah_capabilities.cap_mode); |
100 | } | 102 | } |