 /* Set hardware WEP key if it is configured. */ if ((priv->capability & CAP_PRIVACY_ON) && (priv->ieee->sec.level == SEC_LEVEL_1) && !(priv->ieee->host_encrypt || priv->ieee->host_decrypt)) ipw_set_hwcrypto_keys(priv);  
static int ipw_up(struct ipw_priv *priv){	int rc, i;	if (priv->status & STATUS_EXIT_PENDING)		return -EIO;	for (i = 0; i < MAX_HW_RESTARTS; i++) {		/* Load the microcode, firmware, and eeprom.		 * Also start the clocks. */		rc = ipw_load(priv);		if (rc) {			IPW_ERROR("Unable to load firmware: 0x%08X\n", rc);			return rc;		}		ipw_init_ordinals(priv);		if (!(priv->config & CFG_CUSTOM_MAC))			eeprom_parse_mac(priv, priv->mac_addr);		memcpy(priv->net_dev->dev_addr, priv->mac_addr, ETH_ALEN);		if (priv->status & STATUS_RF_KILL_SW) {			IPW_WARNING("Radio disabled by module parameter.\n");			return 0;		} else if (rf_kill_active(priv)) {			IPW_WARNING("Radio Frequency Kill Switch is On:\n"				    "Kill switch must be turned off for "				    "wireless networking to work.\n");			queue_delayed_work(priv->workqueue, &priv->rf_kill,					   2 * HZ);			return 0;		}		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;			return 0;		}		IPW_DEBUG_INFO("Device configuration failed: 0x%08X\n", rc);		IPW_DEBUG_INFO("Failed to config device on retry %d of %d\n",			       i, MAX_HW_RESTARTS);		/* We had an error bringing up the hardware, so take it		 * all the way back down so we can try again */		ipw_down(priv);	}	/* tried to restart and config the device for as long as our	 * patience could withstand */	IPW_ERROR("Unable to initialize device after %d attempts.\n", i);	return -EIO;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/afbf30a2b78cac38e6ddae10a73063943b4783ee/ipw2200.c/clean/drivers/net/wireless/ipw2200.c