1
0
Files
linux/drivers
Stanislaw Gruszka b305a6ab02 mt7601u: use EWMA to calculate avg_rssi
avr_rssi is not calculated correctly as we do not divide result
by 256 (mt76 sum avg_rssi1 and avg_rssi2 and divide by 512).
However dividing by 256 will make avg_rssi almost the same as
last rssi value - not really an average. So use EWMA to calculate
avg_rssi. I've chosen weight_rcp=4 to convergence quicker on signal
strength changes.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-04-24 20:33:02 +03:00
..
2018-04-16 09:38:40 +02:00
2018-03-27 09:51:22 +02:00
2018-04-12 21:46:10 -04:00
2018-04-11 10:28:39 -07:00
2018-03-29 13:38:10 +03:00