struct orinoco_private *priv = netdev_priv(dev); int i;  /* Gather wireless spy statistics: for each packet, compare the * source address with out list, and if match, get the stats... */ for (i = 0; i < priv->spy_number; i++) if (!memcmp(mac, priv->spy_address[i], ETH_ALEN)) { priv->spy_stat[i].level = level - 0x95; priv->spy_stat[i].noise = noise - 0x95; priv->spy_stat[i].qual = (level > noise) ? (level - noise) : 0; priv->spy_stat[i].updated = 7; } 
struct iw_quality wstats; wstats.level = level - 0x95; wstats.noise = noise - 0x95; wstats.qual = (level > noise) ? (level - noise) : 0; wstats.updated = 7; /* Update spy records */ wireless_spy_update(dev, mac, &wstats); 
static inline void orinoco_spy_gather(struct net_device *dev, u_char *mac,				      int level, int noise){	struct orinoco_private *priv = netdev_priv(dev);	int i;	/* Gather wireless spy statistics: for each packet, compare the	 * source address with out list, and if match, get the stats... */	for (i = 0; i < priv->spy_number; i++)		if (!memcmp(mac, priv->spy_address[i], ETH_ALEN)) {			priv->spy_stat[i].level = level - 0x95;			priv->spy_stat[i].noise = noise - 0x95;			priv->spy_stat[i].qual = (level > noise) ? (level - noise) : 0;			priv->spy_stat[i].updated = 7;		}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/343c686c04eec556645f251f7d6c9b3d7335dae0/orinoco.c/buggy/drivers/net/wireless/orinoco.c