]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath/ath5k/ath9k: Fix crypto capabilities merge issue
authorBruno Randolf <br1@einfach.org>
Fri, 17 Sep 2010 02:36:25 +0000 (11:36 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Sep 2010 15:05:05 +0000 (11:05 -0400)
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>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath9k/hw.c

index c5584077d1de36e500bb783bd75bcc64bcfd887a..dd236c3b52f6218755b2197845f987a487d87a43 100644 (file)
@@ -72,13 +72,8 @@ struct ath_regulatory {
 };
 
 enum ath_crypt_caps {
-       ATH_CRYPT_CAP_MIC_AESCCM                = BIT(0),
-       ATH_CRYPT_CAP_MIC_CKIP                  = BIT(1),
-       ATH_CRYPT_CAP_MIC_TKIP                  = BIT(2),
-       ATH_CRYPT_CAP_CIPHER_AESCCM             = BIT(3),
-       ATH_CRYPT_CAP_CIPHER_CKIP               = BIT(4),
-       ATH_CRYPT_CAP_CIPHER_TKIP               = BIT(5),
-       ATH_CRYPT_CAP_MIC_COMBINED              = BIT(6),
+       ATH_CRYPT_CAP_CIPHER_AESCCM             = BIT(0),
+       ATH_CRYPT_CAP_MIC_COMBINED              = BIT(1),
 };
 
 struct ath_keyval {
index a0e08201c9397162b2449db79864c4f9b6fb40b9..20d178eabc9c6c747952de3b0e3d4a1c73488cbb 100644 (file)
@@ -320,8 +320,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
        if (srev >= AR5K_SREV_AR5212_V4 &&
            (ee->ee_version >= AR5K_EEPROM_VERSION_5_0 &&
            !AR5K_EEPROM_AES_DIS(ee->ee_misc5)))
-               common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM |
-                                       ATH_CRYPT_CAP_MIC_AESCCM;
+               common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
 
        if (srev >= AR5K_SREV_AR2414) {
                common->crypt_caps |= ATH_CRYPT_CAP_MIC_COMBINED;
index f3c9d75495712397395ed0563d9b97df97f36de1..0b2ff98b6f331db9d5f5dfef406bb396df919145 100644 (file)
@@ -1866,6 +1866,8 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
        pCap->low_5ghz_chan = 4920;
        pCap->high_5ghz_chan = 6100;
 
+       common->crypt_caps |= ATH_CRYPT_CAP_CIPHER_AESCCM;
+
        if (ah->config.ht_enable)
                pCap->hw_caps |= ATH9K_HW_CAP_HT;
        else