diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2006-09-04 00:38:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-09-11 19:34:02 -0400 |
commit | 6807b5076373b8a6b6dac3b3b54645c85df91ad6 (patch) | |
tree | 4f8187d5fd0c0b8c60d6d927d5db94461c70ea3b /drivers/net | |
parent | bd6dd756522f3874b0efe576f9c25f5dee239646 (diff) |
[PATCH] bcm43xx: remove dead statistics code
This patch removes code that was make obsolete when the wireless
statistics in bcm43xx-softmac were changed, but was overlooked at that
time. The value of bcm->stats.link_quality computed here is never used.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 699b74dfb182..c19bd866147e 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -1546,17 +1546,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm) | |||
1546 | else | 1546 | else |
1547 | average -= 48; | 1547 | average -= 48; |
1548 | 1548 | ||
1549 | /* FIXME: This is wrong, but people want fancy stats. well... */ | 1549 | bcm->stats.noise = average; |
1550 | bcm->stats.noise = average; | ||
1551 | if (average > -65) | ||
1552 | bcm->stats.link_quality = 0; | ||
1553 | else if (average > -75) | ||
1554 | bcm->stats.link_quality = 1; | ||
1555 | else if (average > -85) | ||
1556 | bcm->stats.link_quality = 2; | ||
1557 | else | ||
1558 | bcm->stats.link_quality = 3; | ||
1559 | // dprintk(KERN_INFO PFX "Link Quality: %u (avg was %d)\n", bcm->stats.link_quality, average); | ||
1560 | drop_calculation: | 1550 | drop_calculation: |
1561 | bcm->noisecalc.calculation_running = 0; | 1551 | bcm->noisecalc.calculation_running = 0; |
1562 | return; | 1552 | return; |