int ipw2100_set_power_mode(struct ipw2100_priv *priv, int power_level) 
static int ipw2100_set_power_mode(struct ipw2100_priv *priv, int power_level) 
int ipw2100_set_power_mode(struct ipw2100_priv *priv,			   int power_level){	struct host_command cmd = {		.host_command = POWER_MODE,		.host_command_sequence = 0,		.host_command_length = 4	};	int err;	cmd.host_command_parameters[0] = power_level;	err = ipw2100_hw_send_command(priv, &cmd);	if (err)		return err;	if (power_level == IPW_POWER_MODE_CAM)		priv->power_mode = IPW_POWER_LEVEL(priv->power_mode);	else		priv->power_mode = IPW_POWER_ENABLED | power_level;#ifdef CONFIG_IPW2100_TX_POWER	if (priv->port_type == IBSS &&	    priv->adhoc_power != DFTL_IBSS_TX_POWER) {		/* Set beacon interval */		cmd.host_command = TX_POWER_INDEX;		cmd.host_command_parameters[0] = (u32)priv->adhoc_power;		err = ipw2100_hw_send_command(priv, &cmd);		if (err)			return err;	}#endif	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c4aee8c21ff5d8d6f9a27112468f5e840d5ced1b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c