if ((priv->config & CFG_ASSOCIATE) && ipw_request_scan(priv)) { IPW_WARNING("error sending scan request\n"); goto error; } 
if (priv->config & CFG_ASSOCIATE) queue_work(priv->workqueue, &priv->request_scan); 
static int ipw_config(struct ipw_priv *priv){	int i;	struct ipw_tx_power tx_power;	memset(&priv->sys_config, 0, sizeof(priv->sys_config));	memset(&tx_power, 0, sizeof(tx_power));	/* This is only called from ipw_up, which resets/reloads the firmware	   so, we don't need to first disable the card before we configure	   it */	/* configure device for 'G' band */	tx_power.ieee_mode = IPW_G_MODE;	tx_power.num_channels = 11;	for (i = 0; i < 11; i++) {		tx_power.channels_tx_power[i].channel_number = i + 1;		tx_power.channels_tx_power[i].tx_power = priv->tx_power;	}	if (ipw_send_tx_power(priv, &tx_power))		goto error;	/* configure device to also handle 'B' band */	tx_power.ieee_mode = IPW_B_MODE;	if (ipw_send_tx_power(priv, &tx_power))		goto error;	/* initialize adapter address */	if (ipw_send_adapter_address(priv, priv->net_dev->dev_addr))		goto error;	/* set basic system config settings */	init_sys_config(&priv->sys_config);	if (priv->ieee->iw_mode == IW_MODE_ADHOC)		priv->sys_config.answer_broadcast_ssid_probe = 1;	else		priv->sys_config.answer_broadcast_ssid_probe = 0;	if (ipw_send_system_config(priv, &priv->sys_config))		goto error;	init_supported_rates(priv, &priv->rates);	if (ipw_send_supported_rates(priv, &priv->rates))		goto error;	/* Set request-to-send threshold */	if (priv->rts_threshold) {		if (ipw_send_rts_threshold(priv, priv->rts_threshold))			goto error;	}	if (ipw_set_random_seed(priv))		goto error;	/* final state transition to the RUN state */	if (ipw_send_host_complete(priv))		goto error;	/* If configured to try and auto-associate, kick off a scan */	if ((priv->config & CFG_ASSOCIATE) && ipw_request_scan(priv)) {		IPW_WARNING("error sending scan request\n");		goto error;	}	return 0;      error:	return -EIO;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b095c3819805f87d73d41641a53e4c070360d783/ipw2200.c/buggy/drivers/net/wireless/ipw2200.c