]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/mac80211/mlme.c
mac80211: Fix signal strength average initialization for CQM events
authorJouni Malinen <j@w1.fi>
Fri, 27 Aug 2010 19:21:13 +0000 (22:21 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 Aug 2010 18:20:40 +0000 (14:20 -0400)
commit3ba06c6fbd651ed3377e584026d1c112b492cc8b
tree0b8159ae02a76be2c425fd00cd95b9f48ebc2133
parent486699532e43460234cbebc19cbebd2755b67da3
mac80211: Fix signal strength average initialization for CQM events

The ave_beacon_signal value uses 1/16 dB unit and as such, must be
initialized with the signal level of the first Beacon frame multiplied
by 16. This fixes an issue where the initial CQM events are reported
incorrectly with a burst of events while the running average
approaches the correct value after the incorrect initialization. This
could cause user space -based roaming decision process to get quite
confused at the moment when we would like to go through authentication
and DHCP.

Cc: stable@kernel.org
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c