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/iwlwifi/iwl-agn.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/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 43e078b87378..21a52ae05c0d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3389,7 +3389,9 @@ static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
3389 | * in 1X mode. | 3389 | * in 1X mode. |
3390 | * In legacy wep mode, we use another host command to the uCode. | 3390 | * In legacy wep mode, we use another host command to the uCode. |
3391 | */ | 3391 | */ |
3392 | if (key->alg == ALG_WEP && !sta && vif->type != NL80211_IFTYPE_AP) { | 3392 | if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || |
3393 | key->cipher == WLAN_CIPHER_SUITE_WEP104) && | ||
3394 | !sta && vif->type != NL80211_IFTYPE_AP) { | ||
3393 | if (cmd == SET_KEY) | 3395 | if (cmd == SET_KEY) |
3394 | is_default_wep_key = !priv->key_mapping_key; | 3396 | is_default_wep_key = !priv->key_mapping_key; |
3395 | else | 3397 | else |