if (missed_count > priv->roaming_threshold) { 
if (missed_count > priv->roaming_threshold && missed_count <= priv->disassociate_threshold) { 
static inline void ipw_handle_missed_beacon(struct ipw_priv *priv,					    int missed_count){	priv->notif_missed_beacons = missed_count;	if (missed_count > priv->disassociate_threshold &&	    priv->status & STATUS_ASSOCIATED) {		/* If associated and we've hit the missed		 * beacon threshold, disassociate, turn		 * off roaming, and abort any active scans */		IPW_DEBUG(IPW_DL_INFO | IPW_DL_NOTIF |			  IPW_DL_STATE | IPW_DL_ASSOC,			  "Missed beacon: %d - disassociate\n", missed_count);		priv->status &= ~STATUS_ROAMING;		if (priv->status & STATUS_SCANNING) {			IPW_DEBUG(IPW_DL_INFO | IPW_DL_NOTIF |				  IPW_DL_STATE,				  "Aborting scan with missed beacon.\n");			queue_work(priv->workqueue, &priv->abort_scan);		}		queue_work(priv->workqueue, &priv->disassociate);		return;	}	if (priv->status & STATUS_ROAMING) {		/* If we are currently roaming, then just		 * print a debug statement... */		IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE,			  "Missed beacon: %d - roam in progress\n",			  missed_count);		return;	}	if (missed_count > priv->roaming_threshold) {		/* If we are not already roaming, set the ROAM		 * bit in the status and kick off a scan */		IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE,			  "Missed beacon: %d - initiate "			  "roaming\n", missed_count);		if (!(priv->status & STATUS_ROAMING)) {			priv->status |= STATUS_ROAMING;			if (!(priv->status & STATUS_SCANNING))				queue_work(priv->workqueue,					   &priv->request_scan);		}		return;	}	if (priv->status & STATUS_SCANNING) {		/* Stop scan to keep fw from getting		 * stuck (only if we aren't roaming --		 * otherwise we'll never scan more than 2 or 3		 * channels..) */		IPW_DEBUG(IPW_DL_INFO | IPW_DL_NOTIF | IPW_DL_STATE,			  "Aborting scan with missed beacon.\n");		queue_work(priv->workqueue, &priv->abort_scan);	}	IPW_DEBUG_NOTIF("Missed beacon: %d\n", missed_count);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e758256104c3c2475f7746bc1b348c99cdb207f2/ipw2200.c/buggy/drivers/net/wireless/ipw2200.c