value = (wrqu->txpower.value - IPW_TX_POWER_MIN_DBM) * 16 / (IPW_TX_POWER_MAX_DBM - IPW_TX_POWER_MIN_DBM); 
value = wrqu->txpower.value; 
static int ipw2100_wx_set_txpow(struct net_device *dev,				struct iw_request_info *info,				union iwreq_data *wrqu, char *extra){	struct ipw2100_priv *priv = ieee80211_priv(dev);	int err = 0, value;	if (priv->ieee->iw_mode != IW_MODE_ADHOC)		return -EINVAL;	if (wrqu->txpower.disabled == 1 || wrqu->txpower.fixed == 0)		value = IPW_TX_POWER_DEFAULT;	else {		if (wrqu->txpower.value < IPW_TX_POWER_MIN_DBM ||		    wrqu->txpower.value > IPW_TX_POWER_MAX_DBM)			return -EINVAL;		value = (wrqu->txpower.value - IPW_TX_POWER_MIN_DBM) * 16 /		    (IPW_TX_POWER_MAX_DBM - IPW_TX_POWER_MIN_DBM);	}	down(&priv->action_sem);	if (!(priv->status & STATUS_INITIALIZED)) {		err = -EIO;		goto done;	}	err = ipw2100_set_tx_power(priv, value);	IPW_DEBUG_WX("SET TX Power -> %d \n", value);      done:	up(&priv->action_sem);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f75459e6f64ca0632f23029e2ca47b424dd33373/ipw2100.c/clean/drivers/net/wireless/ipw2100.c