static void atmel_management_timer(u_long a){  struct net_device *dev = (struct net_device *) a;  struct atmel_private *priv = netdev_priv(dev);  unsigned long flags;    /* Check if the card has been yanked. */  if (priv->card && priv->present_callback &&       !(*priv->present_callback)(priv->card))	  return;    spin_lock_irqsave(&priv->irqlock, flags);  switch (priv->station_state) {	    case STATION_STATE_AUTHENTICATING:	  if (priv->AuthenticationRequestRetryCnt >= MAX_AUTHENTICATION_RETRIES) {		  atmel_enter_state(priv, STATION_STATE_MGMT_ERROR);		  priv->station_is_associated = 0;		  priv->AuthenticationRequestRetryCnt = 0;		  restart_search(priv);	  } else {		  priv->AuthenticationRequestRetryCnt++;		  priv->CurrentAuthentTransactionSeqNum = 0x0001;		  mod_timer(&priv->management_timer, jiffies + MGMT_JIFFIES);		  send_authentication_request(priv, C80211_MGMT_AAN_OPENSYSTEM, NULL, 0);	  }	  	  break;  case STATION_STATE_ASSOCIATING:	  if (priv->AssociationRequestRetryCnt == MAX_ASSOCIATION_RETRIES) {		  atmel_enter_state(priv, STATION_STATE_MGMT_ERROR);		  priv->station_is_associated = 0;		  priv->AssociationRequestRetryCnt = 0;		  restart_search(priv);	  } else {		  priv->AssociationRequestRetryCnt++;		  mod_timer(&priv->management_timer, jiffies + MGMT_JIFFIES);		  send_association_request(priv, 0);	  }	  break;		    case STATION_STATE_REASSOCIATING:		  if (priv->ReAssociationRequestRetryCnt == MAX_ASSOCIATION_RETRIES) {		  atmel_enter_state(priv, STATION_STATE_MGMT_ERROR);		  priv->station_is_associated = 0;		  priv->ReAssociationRequestRetryCnt = 0;		  restart_search(priv);	  } else {		  priv->ReAssociationRequestRetryCnt++;		  mod_timer(&priv->management_timer, jiffies + MGMT_JIFFIES);		  send_association_request(priv, 1);	  }	  break;    default:	  break;  }    spin_unlock_irqrestore(&priv->irqlock, flags);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4d791aadf63c9d605bc9a4144e79d5756fc29fb3/atmel.c/clean/drivers/net/wireless/atmel.c