提交 054b08d4 编写于 作者: H Hong Liu 提交者: James Ketrenos

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

Signed-off-by: NHong Liu <hong.liu@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册