aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rndis_wlan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index de4c05019f1e..9e6105cd54a5 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -2435,6 +2435,9 @@ static int rndis_set_default_key(struct wiphy *wiphy, struct net_device *netdev,
2435 2435
2436 priv->encr_tx_key_index = key_index; 2436 priv->encr_tx_key_index = key_index;
2437 2437
2438 if (is_wpa_key(priv, key_index))
2439 return 0;
2440
2438 key = priv->encr_keys[key_index]; 2441 key = priv->encr_keys[key_index];
2439 2442
2440 return add_wep_key(usbdev, key.material, key.len, key_index); 2443 return add_wep_key(usbdev, key.material, key.len, key_index);