* [PATCH 5/8] d80211/bcm43xx: Modify bcm43xx_main.c for wireless statistics.
@ 2006-08-08 23:59 Larry Finger
0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2006-08-08 23:59 UTC (permalink / raw)
To: John Linville, netdev
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 <Larry.Finger@lwfinger.net>
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-08 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 23:59 [PATCH 5/8] d80211/bcm43xx: Modify bcm43xx_main.c for wireless statistics Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).