Fix estimated throughput based skip-roam case
Commit 8d1e693186
('Use estimated
throughput to avoid signal based roaming decision') added a check for
the current BSS estimated throughput being significantly higher than the
selected BSS estimated throughput. However, this case for skipping a
roam used "return 1" which actually allows the roam. Fix this by
returning 0 in this case.
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
89fa633afb
commit
bcf66493cf
1 changed files with 1 additions and 1 deletions
|
@ -1561,7 +1561,7 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s,
|
||||||
if (current_bss->est_throughput > selected->est_throughput + 5000) {
|
if (current_bss->est_throughput > selected->est_throughput + 5000) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG,
|
wpa_dbg(wpa_s, MSG_DEBUG,
|
||||||
"Skip roam - Current BSS has better estimated throughput");
|
"Skip roam - Current BSS has better estimated throughput");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_est = current_bss->est_throughput;
|
cur_est = current_bss->est_throughput;
|
||||||
|
|
Loading…
Reference in a new issue