1 --- a/drivers/net/wireless/ath/ath5k/attach.c
2 +++ b/drivers/net/wireless/ath/ath5k/attach.c
3 @@ -318,7 +318,7 @@ int ath5k_hw_init(struct ath5k_softc *sc
4 AR5K_KEYTABLE_SIZE_5210 : AR5K_KEYTABLE_SIZE_5211);
6 if (srev >= AR5K_SREV_AR5212_V4 &&
7 - (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 &&
8 + (ee->ee_version < AR5K_EEPROM_VERSION_5_0 ||
9 !AR5K_EEPROM_AES_DIS(ee->ee_misc5)))
10 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;