diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/attach.c')
-rw-r--r-- | drivers/net/wireless/ath5k/attach.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath5k/attach.c b/drivers/net/wireless/ath5k/attach.c index 153c4111fabe..d92b4a12567c 100644 --- a/drivers/net/wireless/ath5k/attach.c +++ b/drivers/net/wireless/ath5k/attach.c | |||
@@ -168,19 +168,19 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version) | |||
168 | CHANNEL_2GHZ); | 168 | CHANNEL_2GHZ); |
169 | 169 | ||
170 | /* Return on unsuported chips (unsupported eeprom etc) */ | 170 | /* Return on unsuported chips (unsupported eeprom etc) */ |
171 | if ((srev >= AR5K_SREV_VER_AR5416) && | 171 | if ((srev >= AR5K_SREV_AR5416) && |
172 | (srev < AR5K_SREV_VER_AR2425)) { | 172 | (srev < AR5K_SREV_AR2425)) { |
173 | ATH5K_ERR(sc, "Device not yet supported.\n"); | 173 | ATH5K_ERR(sc, "Device not yet supported.\n"); |
174 | ret = -ENODEV; | 174 | ret = -ENODEV; |
175 | goto err_free; | 175 | goto err_free; |
176 | } else if (srev == AR5K_SREV_VER_AR2425) { | 176 | } else if (srev == AR5K_SREV_AR2425) { |
177 | ATH5K_WARN(sc, "Support for RF2425 is under development.\n"); | 177 | ATH5K_WARN(sc, "Support for RF2425 is under development.\n"); |
178 | } | 178 | } |
179 | 179 | ||
180 | /* Identify single chip solutions */ | 180 | /* Identify single chip solutions */ |
181 | if (((srev <= AR5K_SREV_VER_AR5414) && | 181 | if (((srev <= AR5K_SREV_AR5414) && |
182 | (srev >= AR5K_SREV_VER_AR2413)) || | 182 | (srev >= AR5K_SREV_AR2413)) || |
183 | (srev == AR5K_SREV_VER_AR2425)) { | 183 | (srev == AR5K_SREV_AR2425)) { |
184 | ah->ah_single_chip = true; | 184 | ah->ah_single_chip = true; |
185 | } else { | 185 | } else { |
186 | ah->ah_single_chip = false; | 186 | ah->ah_single_chip = false; |
@@ -199,24 +199,24 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version) | |||
199 | * correctly. For now we are based on mac's srev to | 199 | * correctly. For now we are based on mac's srev to |
200 | * identify RF2425 radio. | 200 | * identify RF2425 radio. |
201 | */ | 201 | */ |
202 | } else if (srev == AR5K_SREV_VER_AR2425) { | 202 | } else if (srev == AR5K_SREV_AR2425) { |
203 | ah->ah_radio = AR5K_RF2425; | 203 | ah->ah_radio = AR5K_RF2425; |
204 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF2425; | 204 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF2425; |
205 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5112) { | 205 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5112) { |
206 | ah->ah_radio = AR5K_RF5111; | 206 | ah->ah_radio = AR5K_RF5111; |
207 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5111; | 207 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5111; |
208 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_SC0) { | 208 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_2413) { |
209 | ah->ah_radio = AR5K_RF5112; | 209 | ah->ah_radio = AR5K_RF5112; |
210 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5112; | 210 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5112; |
211 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_SC1) { | 211 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5413) { |
212 | ah->ah_radio = AR5K_RF2413; | 212 | ah->ah_radio = AR5K_RF2413; |
213 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF2413; | 213 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF2413; |
214 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_SC2) { | 214 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_2316) { |
215 | ah->ah_radio = AR5K_RF5413; | 215 | ah->ah_radio = AR5K_RF5413; |
216 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5413; | 216 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5413; |
217 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5133) { | 217 | } else if (ah->ah_radio_5ghz_revision < AR5K_SREV_RAD_5133) { |
218 | /* AR5424 */ | 218 | /* AR5424 */ |
219 | if (srev >= AR5K_SREV_VER_AR5424) { | 219 | if (srev >= AR5K_SREV_AR5424) { |
220 | ah->ah_radio = AR5K_RF5413; | 220 | ah->ah_radio = AR5K_RF5413; |
221 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5413; | 221 | ah->ah_phy_spending = AR5K_PHY_SPENDING_RF5413; |
222 | /* AR2424 */ | 222 | /* AR2424 */ |
@@ -252,8 +252,8 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version) | |||
252 | 252 | ||
253 | /* Write AR5K_PCICFG_UNK on 2112B and later chips */ | 253 | /* Write AR5K_PCICFG_UNK on 2112B and later chips */ |
254 | if (ah->ah_radio_5ghz_revision > AR5K_SREV_RAD_2112B || | 254 | if (ah->ah_radio_5ghz_revision > AR5K_SREV_RAD_2112B || |
255 | srev > AR5K_SREV_VER_AR2413) { | 255 | srev > AR5K_SREV_AR2413) { |
256 | ath5k_hw_reg_write(ah, AR5K_PCICFG_UNK, AR5K_PCICFG); | 256 | ath5k_hw_reg_write(ah, AR5K_PCICFG_RETRY_FIX, AR5K_PCICFG); |
257 | } | 257 | } |
258 | 258 | ||
259 | /* | 259 | /* |