From 3f2c728242e75cf8e56bfbbe4a3eb85f07070560 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 10 Jun 2015 12:36:53 -0500 Subject: [PATCH] scan: Fix signal strength ranking calculation We incorrectly ranked lower signal strength APs higher. --- src/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.c b/src/scan.c index a483b296..bc58accf 100644 --- a/src/scan.c +++ b/src/scan.c @@ -370,7 +370,7 @@ void scan_bss_compute_rank(struct scan_bss *bss) */ /* Heavily slanted towards signal strength */ - rank = 10000 - bss->signal_strength; + rank = 10000 + bss->signal_strength; /* * Prefer RSNE first, WPA second. Open networks are much less