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
..
2017-08-24 12:54:33 +03:00
2016-09-09 12:09:25 +03:00
2018-04-24 20:33:02 +03:00
2018-04-04 19:41:45 -07:00
2018-04-24 20:33:02 +03:00
2015-08-10 22:19:31 +03:00