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 /drivers/net/wireless/b43/main.c | |
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 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index a3e2f2bfe3a7..a1186525c70d 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3759,17 +3759,17 @@ static int b43_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
3759 | } | 3759 | } |
3760 | 3760 | ||
3761 | err = -EINVAL; | 3761 | err = -EINVAL; |
3762 | switch (key->alg) { | 3762 | switch (key->cipher) { |
3763 | case ALG_WEP: | 3763 | case WLAN_CIPHER_SUITE_WEP40: |
3764 | if (key->keylen == WLAN_KEY_LEN_WEP40) | 3764 | algorithm = B43_SEC_ALGO_WEP40; |
3765 | algorithm = B43_SEC_ALGO_WEP40; | 3765 | break; |
3766 | else | 3766 | case WLAN_CIPHER_SUITE_WEP104: |
3767 | algorithm = B43_SEC_ALGO_WEP104; | 3767 | algorithm = B43_SEC_ALGO_WEP104; |
3768 | break; | 3768 | break; |
3769 | case ALG_TKIP: | 3769 | case WLAN_CIPHER_SUITE_TKIP: |
3770 | algorithm = B43_SEC_ALGO_TKIP; | 3770 | algorithm = B43_SEC_ALGO_TKIP; |
3771 | break; | 3771 | break; |
3772 | case ALG_CCMP: | 3772 | case WLAN_CIPHER_SUITE_CCMP: |
3773 | algorithm = B43_SEC_ALGO_AES; | 3773 | algorithm = B43_SEC_ALGO_AES; |
3774 | break; | 3774 | break; |
3775 | default: | 3775 | default: |