aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_main.c12
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;
1550bcm->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);
1560drop_calculation: 1550drop_calculation:
1561 bcm->noisecalc.calculation_running = 0; 1551 bcm->noisecalc.calculation_running = 0;
1562 return; 1552 return;