int ipw2100_set_port_type(struct ipw2100_priv *priv, u32 port_type, 
static int ipw2100_set_port_type(struct ipw2100_priv *priv, u32 port_type, 
int ipw2100_set_port_type(struct ipw2100_priv *priv, u32 port_type,				 int batch_mode){	struct host_command cmd = {		.host_command = PORT_TYPE,		.host_command_sequence = 0,		.host_command_length = sizeof(u32)	};	int err;	switch (port_type) {	case IW_MODE_INFRA:		cmd.host_command_parameters[0] = IPW_BSS;		break;	case IW_MODE_ADHOC:		cmd.host_command_parameters[0] = IPW_IBSS;		break;	}	IPW_DEBUG_HC("PORT_TYPE: %s\n",		     port_type == IPW_IBSS ? "Ad-Hoc" : "Managed");	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		if (err) {			printk(KERN_ERR DRV_NAME ": %s: Could not disable adapter %d\n",			       priv->net_dev->name, err);			return err;		}	}	/* send cmd to firmware */	err = ipw2100_hw_send_command(priv, &cmd);	if (!batch_mode)		ipw2100_enable_adapter(priv);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c