int ipw2100_system_config(struct ipw2100_priv *priv, int batch_mode) 
static int ipw2100_system_config(struct ipw2100_priv *priv, int batch_mode) 
int ipw2100_system_config(struct ipw2100_priv *priv, int batch_mode){	struct host_command cmd = {		.host_command = SYSTEM_CONFIG,		.host_command_sequence = 0,		.host_command_length = 12,	};	u32 ibss_mask, len = sizeof(u32);	int err;	/* Set system configuration */	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		if (err)			return err;	}	if (priv->ieee->iw_mode == IW_MODE_ADHOC)		cmd.host_command_parameters[0] |= IPW_CFG_IBSS_AUTO_START;	cmd.host_command_parameters[0] |= IPW_CFG_IBSS_MASK |		IPW_CFG_BSS_MASK |		IPW_CFG_802_1x_ENABLE;	if (!(priv->config & CFG_LONG_PREAMBLE))		cmd.host_command_parameters[0] |= IPW_CFG_PREAMBLE_AUTO;	err = ipw2100_get_ordinal(priv,				  IPW_ORD_EEPROM_IBSS_11B_CHANNELS,				  &ibss_mask,  &len);	if (err)		ibss_mask = IPW_IBSS_11B_DEFAULT_MASK;	cmd.host_command_parameters[1] = REG_CHANNEL_MASK;	cmd.host_command_parameters[2] = REG_CHANNEL_MASK & ibss_mask;	/* 11b only */	/*cmd.host_command_parameters[0] |= DIVERSITY_ANTENNA_A;*/	err = ipw2100_hw_send_command(priv, &cmd);	if (err)		return err;/* If IPv6 is configured in the kernel then we don't want to filter out all * of the multicast packets as IPv6 needs some. */#if !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE)	cmd.host_command = ADD_MULTICAST;	cmd.host_command_sequence = 0;	cmd.host_command_length = 0;	ipw2100_hw_send_command(priv, &cmd);#endif	if (!batch_mode) {		err = ipw2100_enable_adapter(priv);		if (err)			return err;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c