mac80211: Fix signal strength average initialization for CQM events
commitf5656e8d921b05a19f866246e7f79518674d0bfc
authorJouni Malinen <j@w1.fi>
Fri, 27 Aug 2010 19:21:13 +0000 (27 22:21 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:09 +0000 (9 13:32 -0800)
tree1a50a722f1b1ff3afbad74a166cf291eec824128
parent714d22c3ff7cdc4bd23ca35af560688516e0e99b
mac80211: Fix signal strength average initialization for CQM events

commit 3ba06c6fbd651ed3377e584026d1c112b492cc8b upstream.

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.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/mlme.c