From b82d45d4bbd5c160fa97a8c5355243c78a55bf14 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 22 Nov 2016 15:50:01 +0100 Subject: [PATCH 2/2] Less aggressive roaming; signal strength is wildly variable dcbw states (2015-04): "upstream doesn't like that patch so it's been discussed and I think rejected." --- wpa_supplicant/events.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 72a0412..4dc044c 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1443,16 +1443,14 @@ static int wpa_supplicant_need_to_roam(struct wpa_supplicant *wpa_s, min_diff = 2; if (current_bss->level < 0) { - if (current_bss->level < -85) - min_diff = 1; - else if (current_bss->level < -80) - min_diff = 2; - else if (current_bss->level < -75) - min_diff = 3; - else if (current_bss->level < -70) + if (current_bss->level < -75) min_diff = 4; + else if (current_bss->level < -70) + min_diff = 6; + else if (current_bss->level < -65) + min_diff = 8; else - min_diff = 5; + min_diff = 15; } if (to_5ghz) { /* Make it easier to move to 5 GHz band */ -- 2.9.3