mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
scan: Fix signal strength ranking calculation
We incorrectly ranked lower signal strength APs higher.
This commit is contained in:
parent
99ac4d1b0d
commit
3f2c728242
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user