]> git.ipfire.org Git - thirdparty/hostap.git/commit
Refactor wpa_supplicant_need_to_roam()
authorMatthew Wang <matthewmwang@chromium.org>
Tue, 2 Jun 2020 00:10:15 +0000 (17:10 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2020 15:30:08 +0000 (18:30 +0300)
commitd6b450e890e0cd6a84b4023873a2015c2f49226e
tree001c5d9eb77c1d83c7debacdba269244054ec878
parent2ff5a1fdb1cbf57c6a8cd0c303ef5c327091d5ab
Refactor wpa_supplicant_need_to_roam()

Pull all the within-ESS roam code out of wpa_supplicant_need_to_roam()
and into its own function, wpa_supplicant_need_to_roam_within_ess().
This way, we avoid interleaving several #ifndef's in the original
function and wrap the new function in one big #ifndef. This also
modularizes the within-ESS roam code and makes it easier to test.

Signed-off-by: Matthew Wang <matthewmwang@chromium.org>
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant_i.h