aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_main.c')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c
index e680d2acc44b..15deaa508e55 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c
@@ -1539,6 +1539,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm)
1539 average *= 125; 1539 average *= 125;
1540 average += 64; 1540 average += 64;
1541 average /= 128; 1541 average /= 128;
1542
1542 tmp = bcm43xx_shm_read16(bcm, BCM43xx_SHM_SHARED, 0x40C); 1543 tmp = bcm43xx_shm_read16(bcm, BCM43xx_SHM_SHARED, 0x40C);
1543 tmp = (tmp / 128) & 0x1F; 1544 tmp = (tmp / 128) & 0x1F;
1544 if (tmp >= 8) 1545 if (tmp >= 8)
@@ -1550,6 +1551,8 @@ static void handle_irq_noise(struct bcm43xx_private *bcm)
1550 else 1551 else
1551 average -= 48; 1552 average -= 48;
1552 1553
1554/* FIXME: This is wrong, but people want fancy stats. well... */
1555bcm->stats.noise = average;
1553 if (average > -65) 1556 if (average > -65)
1554 bcm->stats.link_quality = 0; 1557 bcm->stats.link_quality = 0;
1555 else if (average > -75) 1558 else if (average > -75)