From: Hong Liu Date: Thu, 25 Aug 2005 09:45:49 +0000 (+0800) Subject: Don't set hardware WEP if we are actually using TKIP/AES. X-Git-Tag: v2.6.15-rc1~69^2~10^2~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=054b08d48464bfa8e5be69829b59bd599c5dcd72;p=linux-2.6 Don't set hardware WEP if we are actually using TKIP/AES. Signed-off-by: Hong Liu --- diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index eaf47078ee..83ba08c0c3 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c @@ -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); } }