aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/scan.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-02-28 14:35:07 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-28 14:40:58 (GMT)
commit8b2b718da9884d66684befe99d1fbdd9abe5fb5e (patch)
tree1578b3df9a7cdc941ceac69e099243048d68c3f6 /wpa_supplicant/scan.c
parent347c55e216f22002246e378097a16ecb24b7c106 (diff)
downloadhostap-8b2b718da9884d66684befe99d1fbdd9abe5fb5e.zip
hostap-8b2b718da9884d66684befe99d1fbdd9abe5fb5e.tar.gz
hostap-8b2b718da9884d66684befe99d1fbdd9abe5fb5e.tar.bz2
Fix minor issue in HT40 max rate determination
Commit a1b790eb9d7514d1a6e0582a07f695a1564caa59 ('Select AP based on estimated maximum throughput') had a copy-paste bug than ended up leaving one of the max_ht40_rate() cases unreachable. (CID 106087) Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/scan.c')
-rw-r--r--wpa_supplicant/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 30a6657..6e376a2 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -1861,7 +1861,7 @@ static unsigned int max_ht40_rate(int snr)
return 81000; /* HT40 MCS4 */
if (snr < 22)
return 108000; /* HT40 MCS5 */
- if (snr < 22)
+ if (snr < 24)
return 121500; /* HT40 MCS6 */
return 135000; /* HT40 MCS7 */
}