int ipw2100_set_tx_rates(struct ipw2100_priv *priv, u32 rate, int batch_mode) 
static int ipw2100_set_tx_rates(struct ipw2100_priv *priv, u32 rate, int batch_mode) 
int ipw2100_set_tx_rates(struct ipw2100_priv *priv, u32 rate, int batch_mode){	struct host_command cmd = {		.host_command = BASIC_TX_RATES,		.host_command_sequence = 0,		.host_command_length = 4	};	int err;	cmd.host_command_parameters[0] = rate & TX_RATE_MASK;	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		if (err)			return err;	}	/* Set BASIC TX Rate first */	ipw2100_hw_send_command(priv, &cmd);	/* Set TX Rate */	cmd.host_command = TX_RATES;	ipw2100_hw_send_command(priv, &cmd);	/* Set MSDU TX Rate */	cmd.host_command = MSDU_TX_RATES;	ipw2100_hw_send_command(priv, &cmd);	if (!batch_mode) {		err = ipw2100_enable_adapter(priv);		if (err)			return err;	}	priv->tx_rates = rate;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c