static int atmel_proc_output (char *buf, struct atmel_private *priv){	int i;	char *p = buf;	char *s, *r, *c;		p += sprintf(p, "Driver version:\t\t%d.%d\n", DRIVER_MAJOR, DRIVER_MINOR);		if (priv->station_state != STATION_STATE_DOWN) {		p += sprintf(p, "Firmware version:\t%d.%d build %d\nFirmware location:\t", 			     priv->host_info.major_version,			     priv->host_info.minor_version,			     priv->host_info.build_version);				if (priv->card_type != CARD_TYPE_EEPROM) 			p += sprintf(p, "on card\n");		else if (priv->firmware) 			p += sprintf(p, "%s loaded by host\n", priv->firmware_id);		else			p += sprintf(p, "%s loaded by hotplug\n", priv->firmware_id);				switch(priv->card_type) {		case CARD_TYPE_PARALLEL_FLASH: c = "Parallel flash"; break;		case CARD_TYPE_SPI_FLASH: c = "SPI flash\n"; break;		case CARD_TYPE_EEPROM: c = "EEPROM"; break;		default: c = "<unknown>";		}				r = "<unknown>";		for (i = 0; i < sizeof(channel_table)/sizeof(channel_table[0]); i++)			if (priv->reg_domain == channel_table[i].reg_domain)				r = channel_table[i].name;				p += sprintf(p, "MAC memory type:\t%s\n", c);		p += sprintf(p, "Regulatory domain:\t%s\n", r);		p += sprintf(p, "Host CRC checking:\t%s\n", 			     priv->do_rx_crc ? "On" : "Off");		p += sprintf(p, "WPA-capable firmware:\t%s\n",			     priv->use_wpa ? "Yes" : "No");	}		switch(priv->station_state) {	case STATION_STATE_SCANNING: s = "Scanning"; break;	case STATION_STATE_JOINNING: s = "Joining"; break;	case STATION_STATE_AUTHENTICATING: s = "Authenticating"; break;	case STATION_STATE_ASSOCIATING: s = "Associating"; break;	case STATION_STATE_READY: s = "Ready"; break;	case STATION_STATE_REASSOCIATING: s = "Reassociating"; break;	case STATION_STATE_MGMT_ERROR: s = "Management error"; break;	case STATION_STATE_DOWN: s = "Down"; break;	default: s = "<unknown>";	}      	p += sprintf(p, "Current state:\t\t%s\n", s);	return  p - buf;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c