diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index a532a9e576dc..40616dbd26f0 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -4951,7 +4951,8 @@ static int iwl4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
4951 | if (cmd == SET_KEY) | 4951 | if (cmd == SET_KEY) |
4952 | is_default_wep_key = !priv->key_mapping_key; | 4952 | is_default_wep_key = !priv->key_mapping_key; |
4953 | else | 4953 | else |
4954 | is_default_wep_key = priv->default_wep_key; | 4954 | is_default_wep_key = |
4955 | (key->hw_key_idx == HW_KEY_DEFAULT); | ||
4955 | } | 4956 | } |
4956 | 4957 | ||
4957 | switch (cmd) { | 4958 | switch (cmd) { |