int ipw2100_start_scan(struct ipw2100_priv *priv) 
static int ipw2100_start_scan(struct ipw2100_priv *priv) 
int ipw2100_start_scan(struct ipw2100_priv *priv){	struct host_command cmd = {		.host_command = BROADCAST_SCAN,		.host_command_sequence = 0,		.host_command_length = 4	};	int err;	IPW_DEBUG_HC("START_SCAN\n");	cmd.host_command_parameters[0] = 0;	/* No scanning if in monitor mode */	if (priv->ieee->iw_mode == IW_MODE_MONITOR)		return 1;	if (priv->status & STATUS_SCANNING) {		IPW_DEBUG_SCAN("Scan requested while already in scan...\n");		return 0;	}	IPW_DEBUG_INFO("enter\n");	/* Not clearing here; doing so makes iwlist always return nothing...	 *	 * We should modify the table logic to use aging tables vs. clearing	 * the table on each scan start.	 */	IPW_DEBUG_SCAN("starting scan\n");	priv->status |= STATUS_SCANNING;	err = ipw2100_hw_send_command(priv, &cmd);	if (err)		priv->status &= ~STATUS_SCANNING;	IPW_DEBUG_INFO("exit\n");	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c