]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Clean up old scan data processing
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:16 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 18:52:14 +0000 (20:52 +0200)
commit20ed289a785c32fc4dc3a90307f827e10a8f0725
tree894e29d7dc8affd58af81ee4a94b8029cc038840
parent4750a4f62a9ac178fc18964950e34b389304f43f
WNM: Clean up old scan data processing

When receiving a BTM request, wpa_supplicant would try to fetch new
results from the driver, and, independently of that, would also process
the latest scan results that were partially updated by the previous
fetch.

Simplify the logic by using wpa_supplicant_get_scan_results() directly
and then process the old scan data as usual. However, this data may be
outdated, so add a new heuristic to avoid roaming to a BSS if it is
either outdated or bad.

Doing this moves all scan data processing into wnm_scan_process() and
removes duplicated functionality for scan result processing in scan.c.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
wpa_supplicant/events.c
wpa_supplicant/scan.c
wpa_supplicant/scan.h
wpa_supplicant/wnm_sta.c
wpa_supplicant/wnm_sta.h