]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Use standard BSS selection and enable abridged bit handling
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 19 Sep 2024 10:19:17 +0000 (12:19 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2024 10:37:39 +0000 (12:37 +0200)
commit1f4a2e825eda14a7a55fa2aa3a6ddbb4a02cc93e
tree74f38d06ec03b90f84e0a762c31bc037a634ee25
parentf3a8e4284681502e87059c9bb9ab17e4f326cbb9
WNM: Use standard BSS selection and enable abridged bit handling

Most of the logic to reject BSSs during transition has been moved into
wnm_is_bss_excluded(). In addition to this, since commit 67bf89f55442
("WNM: Choose the best available BSS, not just the first one") we will
simply choose the BSS with the best throughput.

Overall, this matches the behavior that wpa_supplicant will use anyway
in wpa_supplicant_select_bss(). The only bigger difference is that using
this will check all known BSSs instead of only the ones in the candidate
list. This means that with this change the abridged bit is handled
according to standard.

There are some subtle changes to the logic. One is, that candidates with
a very low signal level are not explicitly dropped anymore. However,
that code pre-dates the logic to prefer the best BSS and should not be
relevant anymore.

Another small adjustment is to change the custom logic to avoid roaming
when it is not needed to use wpa_supplicant_need_to_roam_within_ess().

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