3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

scan: Fix signal strength ranking calculation

We incorrectly ranked lower signal strength APs higher.
This commit is contained in:
Denis Kenzior 2015-06-10 12:36:53 -05:00
parent 99ac4d1b0d
commit 3f2c728242

View File

@ -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