[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>
This commit is contained in:
parent
bd6dd75652
commit
6807b50763
@ -1546,17 +1546,7 @@ static void handle_irq_noise(struct bcm43xx_private *bcm)
|
|||||||
else
|
else
|
||||||
average -= 48;
|
average -= 48;
|
||||||
|
|
||||||
/* FIXME: This is wrong, but people want fancy stats. well... */
|
bcm->stats.noise = average;
|
||||||
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);
|
|
||||||
drop_calculation:
|
drop_calculation:
|
||||||
bcm->noisecalc.calculation_running = 0;
|
bcm->noisecalc.calculation_running = 0;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user