aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-01-02 18:33:01 (GMT)
committerJouni Malinen <j@w1.fi>2020-01-02 18:34:39 (GMT)
commitc8eb7fe66cb3c8fbefa00e5050758eaa1304d416 (patch)
tree3e1ffdcfd234e787a64fc8af3d0dad3d245dcde3
parenta8b00423eabc80eb12f9d17243d3d2aa0d5bac33 (diff)
downloadhostap-c8eb7fe66cb3c8fbefa00e5050758eaa1304d416.zip
hostap-c8eb7fe66cb3c8fbefa00e5050758eaa1304d416.tar.gz
hostap-c8eb7fe66cb3c8fbefa00e5050758eaa1304d416.tar.bz2
Fix signal_poll based roaming skip
Fix a rebasing issue in the signal difference calculation. The older patch was not updated to use the new cur_level local variable to get the possibly updated signal level for the current BSS. Fixes: a2c1bebd4301 ("Improve roaming logic") Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 9b37551..d75a50e 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1850,7 +1850,7 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s,
if (to_5ghz)
min_diff -= 2;
- diff = selected->level - current_bss->level;
+ diff = selected->level - cur_level;
if (diff < min_diff) {
wpa_dbg(wpa_s, MSG_DEBUG,
"Skip roam - too small difference in signal level (%d < %d)",