diff options
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index d42692dfbc67..c5b921bf5a96 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -1214,7 +1214,7 @@ static int add_wep_key(struct usbnet *usbdev, char *key, int key_len, int index) | |||
1214 | struct ndis_80211_wep_key ndis_key; | 1214 | struct ndis_80211_wep_key ndis_key; |
1215 | int cipher, ret; | 1215 | int cipher, ret; |
1216 | 1216 | ||
1217 | if ((key_len != 5 || key_len != 13) || index < 0 || index > 3) | 1217 | if ((key_len != 5 && key_len != 13) || index < 0 || index > 3) |
1218 | return -EINVAL; | 1218 | return -EINVAL; |
1219 | 1219 | ||
1220 | if (key_len == 5) | 1220 | if (key_len == 5) |