struct orinoco_private *priv = netdev_priv(dev); int i;   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;  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;		}}