Skip to contentSkip to conversation

d80211/bcm43xx: Modify bcm43xx_main.c for wireless statistics.

PATCH In review Larry Finger 1 participant 1 message Aug 8, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 d80211/bcm43xx: Modify bcm43xx_main.c for wireless statistics.

Part 5 of 8 to add wireless statistics to the bcm43xx-d80211 system. This patch removes the bogus calculation of link_quality and saves the value of link_noise in the new variable bcm->stats.link_noise.

The patch is for the August 8 version of Linville's wireless-dev tree.

(quoted diff) +0 -0

b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c index 59d137b..d712544 100644

drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c +1 -9
@@ -1506,15 +1506,7 @@ static void handle_irq_noise(struct bcm4
 		else
 			average -= 48;
 
-		if (average > -65)
-			bcm->stats.link_quality = 0;
-		else if (average > -75)
-			bcm->stats.link_quality = 1;
-		else if (average > -85)
-			bcm->stats.link_quality = 2;
-		else
-			bcm->stats.link_quality = 3;
-//		dprintk(KERN_INFO PFX "Link Quality: %u (avg was %d)\n", bcm->stats.link_quality, average);
+		bcm->stats.link_noise = average;
 drop_calculation:
 		bcm->noisecalc.calculation_running = 0;
 		return;