aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-09-16 22:36:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 11:05:05 -0400
commitce2220d1da0bad9583af38a03ad508968d554c0f (patch)
tree12cc09795665f59b8c0299fec37a30a3e9648a68
parentc807666a08800ab387298817db5a6f6e11606adb (diff)
ath/ath5k/ath9k: Fix crypto capabilities merge issue
Fixing up a merge issue / concurrent development: Remove unneeded ath_crypt_caps flags, as per "ath9k_hw: remove useless hw capability flags" (364734fafbba0c3133e482db78149b9a823ae7a5), but set the AESCCM flag for ath9k. common ath code still needs a flag for this because there is ath5k hardware which can't do AES in hardware. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath.h9
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c3
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c2
3 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index c5584077d1de..dd236c3b52f6 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -72,13 +72,8 @@ struct ath_regulatory {
72}; 72};
73 73
74enum ath_crypt_caps { 74enum ath_crypt_caps {
75 ATH_CRYPT_CAP_MIC_AESCCM = BIT(0), 75 ATH_CRYPT_CAP_CIPHER_AESCCM = BIT(0),
76 ATH_CRYPT_CAP_MIC_CKIP = BIT(1), 76 ATH_CRYPT_CAP_MIC_COMBINED = BIT(1),
77 ATH_CRYPT_CAP_MIC_TKIP = BIT(2),
78 ATH_CRYPT_CAP_CIPHER_AESCCM = BIT(3),
79 ATH_CRYPT_CAP_CIPHER_CKIP = BIT(4),
80 ATH_CRYPT_CAP_CIPHER_TKIP = BIT(5),
81 ATH_CRYPT_CAP_MIC_COMBINED = BIT(6),
82}; 77};
83 78
84struct ath_keyval { 79struct ath_keyval {
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index a0e08201c939..20d178eabc9c 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -320,8 +320,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
320 if (srev >= AR5K_SREV_AR5212_V4 && 320 if (srev >= AR5K_SREV_AR5212_V4 &&
321 (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 && 321 (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 &&
322 !AR5K_EEPROM_AES_DIS(ee->ee_misc5))) 322 !AR5K_EEPROM_AES_DIS(ee->ee_misc5)))
323 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM | 323 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
324 ATH_CRYPT_CAP_MIC_AESCCM;
325 324
326 if (srev >= AR5K_SREV_AR2414) { 325 if (srev >= AR5K_SREV_AR2414) {
327 common->crypt_caps |= ATH_CRYPT_CAP_MIC_COMBINED; 326 common->crypt_caps |= ATH_CRYPT_CAP_MIC_COMBINED;
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index f3c9d7549571..0b2ff98b6f33 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1866,6 +1866,8 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
1866 pCap->low_5ghz_chan = 4920; 1866 pCap->low_5ghz_chan = 4920;
1867 pCap->high_5ghz_chan = 6100; 1867 pCap->high_5ghz_chan = 6100;
1868 1868
1869 common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
1870
1869 if (ah->config.ht_enable) 1871 if (ah->config.ht_enable)
1870 pCap->hw_caps |= ATH9K_HW_CAP_HT; 1872 pCap->hw_caps |= ATH9K_HW_CAP_HT;
1871 else 1873 else