aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/attach.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/attach.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index 109ab7ba3041..4819f39da704 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -318,12 +318,9 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version)
318 318
319 /* Crypto settings */ 319 /* Crypto settings */
320 ee = &ah->ah_capabilities.cap_eeprom; 320 ee = &ah->ah_capabilities.cap_eeprom;
321 ah->ah_aes_support = 321 ah->ah_aes_support = srev >= AR5K_SREV_AR5212_V4 &&
322 (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 && 322 (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 &&
323 !AR5K_EEPROM_AES_DIS(ee->ee_misc5) && 323 !AR5K_EEPROM_AES_DIS(ee->ee_misc5));
324 (ah->ah_mac_version > (AR5K_SREV_AR5212 >> 4) ||
325 (ah->ah_mac_version == (AR5K_SREV_AR5212 >> 4) &&
326 ah->ah_mac_revision >= (AR5K_SREV_AR5211 >> 4))));
327 324
328 if (srev >= AR5K_SREV_AR2414) { 325 if (srev >= AR5K_SREV_AR2414) {
329 ah->ah_combined_mic = true; 326 ah->ah_combined_mic = true;