diff options
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r-- | drivers/net/wireless/atmel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 57cc7e58bfe5..32fbaf20d272 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c | |||
@@ -1759,9 +1759,8 @@ static int atmel_set_encode(struct net_device *dev, | |||
1759 | priv->default_key = index; | 1759 | priv->default_key = index; |
1760 | } else | 1760 | } else |
1761 | /* Don't complain if only change the mode */ | 1761 | /* Don't complain if only change the mode */ |
1762 | if (!(dwrq->flags & IW_ENCODE_MODE)) { | 1762 | if (!(dwrq->flags & IW_ENCODE_MODE)) |
1763 | return -EINVAL; | 1763 | return -EINVAL; |
1764 | } | ||
1765 | } | 1764 | } |
1766 | /* Read the flags */ | 1765 | /* Read the flags */ |
1767 | if (dwrq->flags & IW_ENCODE_DISABLED) { | 1766 | if (dwrq->flags & IW_ENCODE_DISABLED) { |