Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35287
b: refs/heads/master
c: 6807b50
h: refs/heads/master
i:
  35285: 79ffdc8
  35283: 4320624
  35279: 68d967d
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Sep 11, 2006
1 parent 30cbd1c commit 6abab42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd6dd756522f3874b0efe576f9c25f5dee239646
refs/heads/master: 6807b5076373b8a6b6dac3b3b54645c85df91ad6
12 changes: 1 addition & 11 deletions trunk/drivers/net/wireless/bcm43xx/bcm43xx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,17 +1546,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm)
else
average -= 48;

/* FIXME: This is wrong, but people want fancy stats. well... */
bcm->stats.noise = average;
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.noise = average;
drop_calculation:
bcm->noisecalc.calculation_running = 0;
return;
Expand Down

0 comments on commit 6abab42

Please sign in to comment.