static int atmel_set_scan(struct net_device *dev,			  struct iw_request_info *info,			  struct iw_param *vwrq,			  char *extra){	struct atmel_private *priv = netdev_priv(dev);	unsigned long flags;	/* Note : you may have realised that, as this is a SET operation,	 * this is privileged and therefore a normal user can't	 * perform scanning.	 * This is not an error, while the device perform scanning,	 * traffic doesn't flow, so it's a perfect DoS...	 * Jean II */		if (priv->station_state == STATION_STATE_DOWN)		return -EAGAIN;	/* Timeout old surveys. */	if ((jiffies - priv->last_survey) > (20 * HZ))		priv->site_survey_state = SITE_SURVEY_IDLE;	priv->last_survey = jiffies;	/* Initiate a scan command */	if (priv->site_survey_state == SITE_SURVEY_IN_PROGRESS)		return -EBUSY;			del_timer_sync(&priv->management_timer);	spin_lock_irqsave(&priv->irqlock, flags);		priv->site_survey_state = SITE_SURVEY_IN_PROGRESS;	priv->fast_scan = 0;	atmel_scan(priv, 0);	spin_unlock_irqrestore(&priv->irqlock, flags);		return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c