[PATCH] ipw2200: Fix software crypto shared WEP authentication problem
authorZhu Yi <yi.zhu@intel.com>
Wed, 15 Feb 2006 05:00:55 +0000 (13:00 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 Feb 2006 13:17:00 +0000 (08:17 -0500)
We didn't set the WEP key to hardware when we are using software based
crypto. Hardware needs the key to do WEP authentication even for
software based encryption.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2200.c

index 02d2dae85c4cf3a989d1cb9a3b0c92c8b8d376ca..30b13a6e6fd97eb8456d1e023119bab4f484ea4a 100644 (file)
@@ -7061,8 +7061,7 @@ static int ipw_associate_network(struct ipw_priv *priv,
                priv->assoc_request.auth_type = AUTH_SHARED_KEY;
                priv->assoc_request.auth_key = priv->ieee->sec.active_key;
 
-               if ((priv->ieee->sec.level == SEC_LEVEL_1) &&
-                   !(priv->ieee->host_encrypt || priv->ieee->host_decrypt))
+               if (priv->ieee->sec.level == SEC_LEVEL_1)
                        ipw_send_wep_keys(priv, DCW_WEP_KEY_SEC_TYPE_WEP);
 
        } else if ((priv->capability & CAP_PRIVACY_ON) &&