if (fwrq->e > 0 || fwrq->m > 1000) return -EOPNOTSUPP; else {			/* Set the channel */ 
if (fwrq->e > 0 || fwrq->m > 1000) { err = -EOPNOTSUPP; goto done; } else {		/* Set the channel */ 
static int ipw2100_wx_set_freq(struct net_device *dev,			       struct iw_request_info *info,			       union iwreq_data *wrqu, char *extra){	struct ipw2100_priv *priv = ieee80211_priv(dev);	struct iw_freq *fwrq = &wrqu->freq;	int err = 0;	if (priv->ieee->iw_mode == IW_MODE_INFRA)		return -EOPNOTSUPP;	down(&priv->action_sem);	if (!(priv->status & STATUS_INITIALIZED)) {		err = -EIO;		goto done;	}	/* if setting by freq convert to channel */	if (fwrq->e == 1) {		if ((fwrq->m >= (int)2.412e8 && fwrq->m <= (int)2.487e8)) {			int f = fwrq->m / 100000;			int c = 0;			while ((c < REG_MAX_CHANNEL) &&			       (f != ipw2100_frequencies[c]))				c++;			/* hack to fall through */			fwrq->e = 0;			fwrq->m = c + 1;		}	}	if (fwrq->e > 0 || fwrq->m > 1000)		return -EOPNOTSUPP;	else {			/* Set the channel */		IPW_DEBUG_WX("SET Freq/Channel -> %d \n", fwrq->m);		err = ipw2100_set_channel(priv, fwrq->m, 0);	}      done:	up(&priv->action_sem);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/823283549da144ff49e65c6e4a670b7784203e0b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c