 cmd.channel = (priv->channel & 0x7f); 
 cmd.channel = (priv->channel & 0x7f); 
static void atmel_scan(struct atmel_private *priv, int specific_ssid){	struct {		u8 BSSID[6];		u8 SSID[MAX_SSID_LENGTH];		u8 scan_type;		u8 channel;		u16 BSS_type;		u16 min_channel_time;		u16 max_channel_time;		u8 options;		u8 SSID_size;	} cmd;		memset(cmd.BSSID, 0xff, 6);	if (priv->fast_scan) {		cmd.SSID_size = priv->SSID_size;		memcpy(cmd.SSID, priv->SSID, priv->SSID_size);		cmd.min_channel_time = cpu_to_le16(10);		cmd.max_channel_time = cpu_to_le16(50);	} else {		priv->BSS_list_entries = 0;		cmd.SSID_size = 0;		cmd.min_channel_time = cpu_to_le16(10);		cmd.max_channel_time = cpu_to_le16(120);	}		cmd.options = 0;		if (!specific_ssid)		cmd.options |= SCAN_OPTIONS_SITE_SURVEY;		cmd.channel = (priv->channel & 0x7f); 	cmd.scan_type = SCAN_TYPE_ACTIVE;	cmd.BSS_type = cpu_to_le16(priv->operating_mode == IW_MODE_ADHOC ? 		BSS_TYPE_AD_HOC : BSS_TYPE_INFRASTRUCTURE);		atmel_send_command(priv, CMD_Scan, &cmd, sizeof(cmd));	/* This must come after all hardware access to avoid being messed up	   by stuff happening in interrupt context after we leave STATE_DOWN */	atmel_enter_state(priv, STATION_STATE_SCANNING);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c