Skip to content

Commit

Permalink
[PATCH] ipw2200: Fix wpa_supplicant association problem
Browse files Browse the repository at this point in the history
The new ipw2200 scan completion event feature will cause a potential event
race condition in wpa_supplicant. The patch fixes this problem by move the
ipw_disassociate() to the IW_AUTH_WPA_ENABLED event handling code.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Apr 24, 2006
1 parent 127119d commit e3c5a64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -6344,8 +6344,6 @@ static void ipw_wpa_assoc_frame(struct ipw_priv *priv, char *wpa_ie,
{
/* make sure WPA is enabled */
ipw_wpa_enable(priv, 1);

ipw_disassociate(priv);
}

static int ipw_set_rsn_capa(struct ipw_priv *priv,
Expand Down Expand Up @@ -6539,6 +6537,7 @@ static int ipw_wx_set_auth(struct net_device *dev,

case IW_AUTH_WPA_ENABLED:
ret = ipw_wpa_enable(priv, param->value);
ipw_disassociate(priv);
break;

case IW_AUTH_RX_UNENCRYPTED_EAPOL:
Expand Down

0 comments on commit e3c5a64

Please sign in to comment.