]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix minor issue in HT40 max rate determination
authorJouni Malinen <j@w1.fi>
Sat, 28 Feb 2015 14:35:07 +0000 (16:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Feb 2015 14:40:58 +0000 (16:40 +0200)
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>
wpa_supplicant/scan.c

index 30a66572dda9f0236f2572ba9c8365226770d512..6e376a2ab4198c28af14c913ab449cd5e93ed43b 100644 (file)
@@ -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 */
 }