]> git.ipfire.org Git - people/arne_f/kernel.git/commit
mt7601u: remove warning when avg_rssi is zero
authorStanislaw Gruszka <sgruszka@redhat.com>
Sat, 9 Jun 2018 10:10:44 +0000 (12:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 24 Jun 2018 17:01:38 +0000 (20:01 +0300)
commit92963318a255fd5df94159767cd4750e55d98cb0
tree2bd25627220e95fdff54152d8842d4890412ea80
parentf8c095f679625a26efc7bb1b8c4b3c6fcaef4633
mt7601u: remove warning when avg_rssi is zero

It turned out that we can run calibration without already received
frames with RSSI data. In such case just don't update AGC register
and don't print the warning.

Fixes: b305a6ab0247 ("mt7601u: use EWMA to calculate avg_rssi")
Reported-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/phy.c