IPW_DEBUG_ERROR("%s: Error stopping adapter.\n", 
printk(KERN_ERR DRV_NAME ": %s: Error stopping adapter.\n", 
static void ipw2100_down(struct ipw2100_priv *priv){	unsigned long flags;	union iwreq_data wrqu = {		.ap_addr = {			.sa_family = ARPHRD_ETHER		}	};	int associated = priv->status & STATUS_ASSOCIATED;	/* Kill the RF switch timer */	if (!priv->stop_rf_kill) {		priv->stop_rf_kill = 1;		cancel_delayed_work(&priv->rf_kill);	}	/* Kill the firmare hang check timer */	if (!priv->stop_hang_check) {		priv->stop_hang_check = 1;		cancel_delayed_work(&priv->hang_check);	}	/* Kill any pending resets */	if (priv->status & STATUS_RESET_PENDING)		cancel_delayed_work(&priv->reset_work);	/* Make sure the interrupt is on so that FW commands will be	 * processed correctly */	spin_lock_irqsave(&priv->low_lock, flags);	ipw2100_enable_interrupts(priv);	spin_unlock_irqrestore(&priv->low_lock, flags);	if (ipw2100_hw_stop_adapter(priv))		IPW_DEBUG_ERROR("%s: Error stopping adapter.\n",		       priv->net_dev->name);	/* Do not disable the interrupt until _after_ we disable	 * the adaptor.  Otherwise the CARD_DISABLE command will never	 * be ack'd by the firmware */	spin_lock_irqsave(&priv->low_lock, flags);	ipw2100_disable_interrupts(priv);	spin_unlock_irqrestore(&priv->low_lock, flags);#ifdef ACPI_CSTATE_LIMIT_DEFINED	if (priv->config & CFG_C3_DISABLED) {		IPW_DEBUG_INFO(DRV_NAME ": Resetting C3 transitions.\n");		acpi_set_cstate_limit(priv->cstate_limit);		priv->config &= ~CFG_C3_DISABLED;	}#endif	/* We have to signal any supplicant if we are disassociating */	if (associated)		wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL);	priv->status &= ~(STATUS_ASSOCIATED | STATUS_ASSOCIATING);	netif_carrier_off(priv->net_dev);	netif_stop_queue(priv->net_dev);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/797b4f7652a4dcf06bdf6a8c870991acdf56c03d/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c