static int atmel_get_range(struct net_device *dev,			   struct iw_request_info *info,			   struct iw_point *dwrq,			   char *extra){	struct atmel_private *priv = netdev_priv(dev);	struct iw_range *range = (struct iw_range *) extra;	int k,i,j;	dwrq->length = sizeof(struct iw_range);	memset(range, 0, sizeof(struct iw_range));	range->min_nwid = 0x0000;	range->max_nwid = 0x0000;	range->num_channels = 0;	for (j = 0; j < sizeof(channel_table)/sizeof(channel_table[0]); j++)		if (priv->reg_domain == channel_table[j].reg_domain) {			range->num_channels = channel_table[j].max - channel_table[j].min + 1;			break;		}	if (range->num_channels != 0) {		for(k = 0, i = channel_table[j].min; i <= channel_table[j].max; i++) {			range->freq[k].i = i; /* List index */			range->freq[k].m = frequency_list[i-1] * 100000;			range->freq[k++].e = 1;	/* Values in table in MHz -> * 10^5 * 10 */		}		range->num_frequency = k;	}		range->max_qual.qual = 100;	range->max_qual.level = 100;	range->max_qual.noise = 0;	range->max_qual.updated = IW_QUAL_NOISE_INVALID;	range->avg_qual.qual = 50;	range->avg_qual.level = 50;	range->avg_qual.noise = 0;	range->avg_qual.updated = IW_QUAL_NOISE_INVALID;	range->sensitivity = 0;	range->bitrate[0] =  1000000;	range->bitrate[1] =  2000000;	range->bitrate[2] =  5500000;	range->bitrate[3] = 11000000;	range->num_bitrates = 4;	range->min_rts = 0;	range->max_rts = 2347;	range->min_frag = 256;	range->max_frag = 2346;	range->encoding_size[0] = 5;	range->encoding_size[1] = 13;	range->num_encoding_sizes = 2;	range->max_encoding_tokens = 4;		range->pmp_flags = IW_POWER_ON;	range->pmt_flags = IW_POWER_ON;	range->pm_capa = 0;		range->we_version_source = WIRELESS_EXT;	range->we_version_compiled = WIRELESS_EXT;	range->retry_capa = IW_RETRY_LIMIT ;	range->retry_flags = IW_RETRY_LIMIT;	range->r_time_flags = 0;	range->min_retry = 1;	range->max_retry = 65535;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c