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: a2c1bebd43
("Improve roaming logic")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a8b00423ea
commit
c8eb7fe66c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue