]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/atmel.c
bcm43xx annotations
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / atmel.c
index 059ce3f07dba1bafe91eccaf4a68a9be26f367eb..32fbaf20d272c3591852d04813d771ed04b13ec6 100644 (file)
@@ -1759,9 +1759,8 @@ static int atmel_set_encode(struct net_device *dev,
                        priv->default_key = index;
                } else
                        /* Don't complain if only change the mode */
-                       if (!dwrq->flags & IW_ENCODE_MODE) {
+                       if (!(dwrq->flags & IW_ENCODE_MODE))
                                return -EINVAL;
-                       }
        }
        /* Read the flags */
        if (dwrq->flags & IW_ENCODE_DISABLED) {