mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
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>
This commit is contained in:
parent
a8b00423ea
commit
c8eb7fe66c
@ -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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user