int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode) 
static int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode) 
int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode){	int err;	if (mode == priv->ieee->iw_mode)		return 0;	err = ipw2100_disable_adapter(priv);	if (err) {		printk(KERN_ERR DRV_NAME ": %s: Could not disable adapter %d\n",		       priv->net_dev->name, err);		return err;	}	switch (mode) {	case IW_MODE_INFRA:		priv->net_dev->type = ARPHRD_ETHER;		break;	case IW_MODE_ADHOC:		priv->net_dev->type = ARPHRD_ETHER;		break;#ifdef CONFIG_IPW2100_MONITOR	case IW_MODE_MONITOR:		priv->last_mode = priv->ieee->iw_mode;		priv->net_dev->type = ARPHRD_IEEE80211;		break;#endif /* CONFIG_IPW2100_MONITOR */	}	priv->ieee->iw_mode = mode;#ifdef CONFIG_PM        /* Indicate ipw2100_download_firmware download firmware	 * from disk instead of memory. */	ipw2100_firmware.version = 0;#endif	printk(KERN_INFO "%s: Reseting on mode change.\n",		priv->net_dev->name);	priv->reset_backoff = 0;	schedule_reset(priv);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c