]> err.no Git - linux-2.6/commitdiff
Don't set hardware WEP if we are actually using TKIP/AES.
authorHong Liu <hong.liu@intel.com>
Thu, 25 Aug 2005 09:45:49 +0000 (17:45 +0800)
committerJames Ketrenos <jketreno@linux.intel.com>
Mon, 7 Nov 2005 23:51:17 +0000 (17:51 -0600)
Signed-off-by: Hong Liu <hong.liu@intel.com>
drivers/net/wireless/ipw2100.c

index eaf47078ee564c7d1727c6674048ffbb26b30968..83ba08c0c33c6c958361777e01ea9c8e9ca098cd 100644 (file)
@@ -5443,8 +5443,11 @@ static void shim__set_security(struct net_device *dev,
                        else
                                memcpy(priv->ieee->sec.keys[i], sec->keys[i],
                                       sec->key_sizes[i]);
-                       priv->ieee->sec.flags |= (1 << i);
-                       priv->status |= STATUS_SECURITY_UPDATED;
+                       if (sec->level == SEC_LEVEL_1) {
+                               priv->ieee->sec.flags |= (1 << i);
+                               priv->status |= STATUS_SECURITY_UPDATED;
+                       } else
+                               priv->ieee->sec.flags &= ~(1 << i);
                }
        }