[Bug 751] Fix driver association requires manual scan. Signed-off-by: Zhu Yi -- diff -urp ipw2200-1.0.6/ipw2200.c ipw2200-1.0.6-init_scan/ipw2200.c --- ipw2200-1.0.6/ipw2200.c 2005-07-14 03:00:28.000000000 +0800 +++ ipw2200-1.0.6-init_scan/ipw2200.c 2005-08-11 12:38:34.000000000 +0800 @@ -10428,13 +10428,13 @@ static int ipw_up(struct ipw_priv *priv) return 0; } + priv->status |= STATUS_INIT; rc = ipw_config(priv); if (!rc) { IPW_DEBUG_INFO("Configured device on count %i\n", i); ipw_led_init(priv); ipw_led_radio_on(priv); priv->notif_missed_beacons = 0; - priv->status |= STATUS_INIT; /* Set hardware WEP key if it is configured. */ if ((priv->capability & CAP_PRIVACY_ON) && @@ -10445,6 +10445,7 @@ static int ipw_up(struct ipw_priv *priv) return 0; } + priv->status &= ~STATUS_INIT; IPW_DEBUG_INFO("Device configuration failed: 0x%08X\n", rc); IPW_DEBUG_INFO("Failed to config device on retry %d of %d\n",