int ipw2100_set_security_information(struct ipw2100_priv *priv, int auth_mode, int security_level, int unicast_using_group, int batch_mode) 
static int ipw2100_set_security_information(struct ipw2100_priv *priv, int auth_mode, int security_level, int unicast_using_group, int batch_mode) 
int ipw2100_set_security_information(struct ipw2100_priv *priv,				     int auth_mode,				     int security_level,				     int unicast_using_group,				     int batch_mode){	struct host_command cmd = {		.host_command = SET_SECURITY_INFORMATION,		.host_command_sequence = 0,		.host_command_length = sizeof(struct security_info_params)	};	struct security_info_params *security =		(struct security_info_params *)&cmd.host_command_parameters;	int err;	memset(security, 0, sizeof(*security));	/* If shared key AP authentication is turned on, then we need to	 * configure the firmware to try and use it.	 *	 * Actual data encryption/decryption is handled by the host. */	security->auth_mode = auth_mode;	security->unicast_using_group = unicast_using_group;	switch (security_level) {	default:	case SEC_LEVEL_0:		security->allowed_ciphers = IPW_NONE_CIPHER;		break;	case SEC_LEVEL_1:		security->allowed_ciphers = IPW_WEP40_CIPHER |			IPW_WEP104_CIPHER;		break;	case SEC_LEVEL_2:		security->allowed_ciphers = IPW_WEP40_CIPHER |			IPW_WEP104_CIPHER | IPW_TKIP_CIPHER;		break;	case SEC_LEVEL_2_CKIP:		security->allowed_ciphers = IPW_WEP40_CIPHER |			IPW_WEP104_CIPHER | IPW_CKIP_CIPHER;		break;	case SEC_LEVEL_3:		security->allowed_ciphers = IPW_WEP40_CIPHER |			IPW_WEP104_CIPHER | IPW_TKIP_CIPHER | IPW_CCMP_CIPHER;		break;	}	IPW_DEBUG_HC(		"SET_SECURITY_INFORMATION: auth:%d cipher:0x%02X (level %d)\n",		security->auth_mode, security->allowed_ciphers, security_level);	security->replay_counters_number = 0;	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		if (err)			return err;	}	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