ath: Copy cryptographic capability flags into ath
authorBruno Randolf <br1@einfach.org>
Wed, 8 Sep 2010 07:04:33 +0000 (16:04 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Sep 2010 19:19:44 +0000 (15:19 -0400)
This will be used later in this patch series.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h

index a706202fa67c9360f70e3fc6ec2351b8f68e943f..057fdd7ddaf4a181e1855d7a41aa9bafd7fb39e5 100644 (file)
@@ -71,6 +71,15 @@ struct ath_regulatory {
        struct reg_dmn_pair_mapping *regpair;
 };
 
+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),
+};
+
 /**
  * struct ath_ops - Register read/write operations
  *
@@ -121,6 +130,7 @@ struct ath_common {
        DECLARE_BITMAP(keymap, ATH_KEYMAX);
        DECLARE_BITMAP(tkip_keymap, ATH_KEYMAX);
        u8 splitmic;
+       enum ath_crypt_caps crypt_caps;
 
        struct ath_regulatory regulatory;
        const struct ath_ops *ops;