Update current BSS level when signal change event occurs
authorMatthieu Mauger <matthieux.mauger@intel.com>
Wed, 18 Feb 2015 02:35:15 +0000 (21:35 -0500)
committerJouni Malinen <j@w1.fi>
Sat, 21 Feb 2015 14:07:53 +0000 (16:07 +0200)
commit71d77adb6db42db3e59537a28ad366d179284a78
tree440d2ee074bac638754213d628603e8f1e05c15b
parentf1609f119aebfef376c9f2b961bb121d566b40a4
Update current BSS level when signal change event occurs

When an EVENT_SIGNAL_CHANGE occurs the bgscan is informed about this
change but the new RSSI value is not stored. In consequence, when
roaming candidates are evaluated, the RSSI value of the current BSS used
to compare is an old one obtained during the last scan rather than the
new one given by the signal change event. This leads sometimes to bad
decision when selecting a new BSS for roaming.

This patch solves the issue by updating the current BSS level when
receiving a signal change event in order to have a very up-to-date
current signal value when choosing an new BSS.

Signed-off-by: Matthieu Mauger <matthieux.mauger@intel.com>
wpa_supplicant/bss.h
wpa_supplicant/events.c