diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-10 03:46:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 16:45:11 -0400 |
commit | 97359d1235eaf634fe706c9faa6e40181cc95fb8 (patch) | |
tree | 5799455c94622eaa6a4fb065bd3b5c350bb705e0 /include | |
parent | 915a824e30c503157c38115eb6a85f60bb653738 (diff) |
mac80211: use cipher suite selectors
Currently, mac80211 translates the cfg80211
cipher suite selectors into ALG_* values.
That isn't all too useful, and some drivers
benefit from the distinction between WEP40
and WEP104 as well. Therefore, convert it
all to use the cipher suite selectors.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 871ed1de736a..914c747ac3a0 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -789,20 +789,6 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) | |||
789 | } | 789 | } |
790 | 790 | ||
791 | /** | 791 | /** |
792 | * enum ieee80211_key_alg - key algorithm | ||
793 | * @ALG_WEP: WEP40 or WEP104 | ||
794 | * @ALG_TKIP: TKIP | ||
795 | * @ALG_CCMP: CCMP (AES) | ||
796 | * @ALG_AES_CMAC: AES-128-CMAC | ||
797 | */ | ||
798 | enum ieee80211_key_alg { | ||
799 | ALG_WEP, | ||
800 | ALG_TKIP, | ||
801 | ALG_CCMP, | ||
802 | ALG_AES_CMAC, | ||
803 | }; | ||
804 | |||
805 | /** | ||
806 | * enum ieee80211_key_flags - key flags | 792 | * enum ieee80211_key_flags - key flags |
807 | * | 793 | * |
808 | * These flags are used for communication about keys between the driver | 794 | * These flags are used for communication about keys between the driver |
@@ -839,7 +825,7 @@ enum ieee80211_key_flags { | |||
839 | * @hw_key_idx: To be set by the driver, this is the key index the driver | 825 | * @hw_key_idx: To be set by the driver, this is the key index the driver |
840 | * wants to be given when a frame is transmitted and needs to be | 826 | * wants to be given when a frame is transmitted and needs to be |
841 | * encrypted in hardware. | 827 | * encrypted in hardware. |
842 | * @alg: The key algorithm. | 828 | * @cipher: The key's cipher suite selector. |
843 | * @flags: key flags, see &enum ieee80211_key_flags. | 829 | * @flags: key flags, see &enum ieee80211_key_flags. |
844 | * @keyidx: the key index (0-3) | 830 | * @keyidx: the key index (0-3) |
845 | * @keylen: key material length | 831 | * @keylen: key material length |
@@ -852,7 +838,7 @@ enum ieee80211_key_flags { | |||
852 | * @iv_len: The IV length for this key type | 838 | * @iv_len: The IV length for this key type |
853 | */ | 839 | */ |
854 | struct ieee80211_key_conf { | 840 | struct ieee80211_key_conf { |
855 | enum ieee80211_key_alg alg; | 841 | u32 cipher; |
856 | u8 icv_len; | 842 | u8 icv_len; |
857 | u8 iv_len; | 843 | u8 iv_len; |
858 | u8 hw_key_idx; | 844 | u8 hw_key_idx; |