diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 8a3b0edf83b0..3526d5ee4755 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2901,12 +2901,13 @@ static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
2901 | mutex_lock(&priv->mutex); | 2901 | mutex_lock(&priv->mutex); |
2902 | iwl_scan_cancel_timeout(priv, 100); | 2902 | iwl_scan_cancel_timeout(priv, 100); |
2903 | 2903 | ||
2904 | /* If we are getting WEP group key and we didn't receive any key mapping | 2904 | /* |
2905 | * If we are getting WEP group key and we didn't receive any key mapping | ||
2905 | * so far, we are in legacy wep mode (group key only), otherwise we are | 2906 | * so far, we are in legacy wep mode (group key only), otherwise we are |
2906 | * in 1X mode. | 2907 | * in 1X mode. |
2907 | * In legacy wep mode, we use another host command to the uCode */ | 2908 | * In legacy wep mode, we use another host command to the uCode. |
2908 | if (key->alg == ALG_WEP && sta_id == priv->hw_params.bcast_sta_id && | 2909 | */ |
2909 | priv->iw_mode != NL80211_IFTYPE_AP) { | 2910 | if (key->alg == ALG_WEP && !sta && vif->type != NL80211_IFTYPE_AP) { |
2910 | if (cmd == SET_KEY) | 2911 | if (cmd == SET_KEY) |
2911 | is_default_wep_key = !priv->key_mapping_key; | 2912 | is_default_wep_key = !priv->key_mapping_key; |
2912 | else | 2913 | else |