mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wpa_supplicant: Fix a typo in wpa_scan_result_compar()
A typo in wpa_scan_result_compar() caused wrong scan results sorting
(and wrong roaming decision). This fixes a copy-paste regression
introduced by commit a1b790eb9d
('Select
AP based on estimated maximum throughput').
Signed-off-by: Maital Hahn <maitalm@ti.com>
This commit is contained in:
parent
1ee6dd2671
commit
aa517ae227
@ -1679,7 +1679,7 @@ static int wpa_scan_result_compar(const void *a, const void *b)
|
|||||||
snr_a_full = wa->snr;
|
snr_a_full = wa->snr;
|
||||||
snr_a = MIN(wa->snr, GREAT_SNR);
|
snr_a = MIN(wa->snr, GREAT_SNR);
|
||||||
snr_b_full = wb->snr;
|
snr_b_full = wb->snr;
|
||||||
snr_b = MIN(wa->snr, GREAT_SNR);
|
snr_b = MIN(wb->snr, GREAT_SNR);
|
||||||
} else {
|
} else {
|
||||||
/* Level is not in dBm, so we can't calculate
|
/* Level is not in dBm, so we can't calculate
|
||||||
* SNR. Just use raw level (units unknown). */
|
* SNR. Just use raw level (units unknown). */
|
||||||
|
Loading…
Reference in New Issue
Block a user