DORMANTno replies

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

From: Larry Finger <hidden>
Date: 2006-08-08 23:59:40

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.

Signed-Off-By: Larry Finger <redacted>


diff --git a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
index 59d137b..d712544 100644
--- a/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
+++ b/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
@@ -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;

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help