Commit 054b08d4 authored by Hong Liu's avatar Hong Liu Committed by James Ketrenos

Don't set hardware WEP if we are actually using TKIP/AES.

Signed-off-by: default avatarHong Liu <hong.liu@intel.com>
parent 55135791
...@@ -5443,8 +5443,11 @@ static void shim__set_security(struct net_device *dev, ...@@ -5443,8 +5443,11 @@ static void shim__set_security(struct net_device *dev,
else else
memcpy(priv->ieee->sec.keys[i], sec->keys[i], memcpy(priv->ieee->sec.keys[i], sec->keys[i],
sec->key_sizes[i]); sec->key_sizes[i]);
priv->ieee->sec.flags |= (1 << i); if (sec->level == SEC_LEVEL_1) {
priv->status |= STATUS_SECURITY_UPDATED; priv->ieee->sec.flags |= (1 << i);
priv->status |= STATUS_SECURITY_UPDATED;
} else
priv->ieee->sec.flags &= ~(1 << i);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment