]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix valid range for disable_ht40
authorJouni Malinen <j@w1.fi>
Sun, 3 Mar 2024 16:36:46 +0000 (18:36 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Mar 2024 16:37:21 +0000 (18:37 +0200)
This network parameter uses values 0 and 1, so -1 should not have been
accepted.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/config.c

index 7662b095ba4e0ea22aa6e17cd83c796a083904bf..b81d8031895a1e0ab2f85654f55164b78b8e5298 100644 (file)
@@ -2675,7 +2675,7 @@ static const struct parse_data ssid_fields[] = {
 #endif /* CONFIG_P2P */
 #ifdef CONFIG_HT_OVERRIDES
        { INT_RANGE(disable_ht, 0, 1) },
-       { INT_RANGE(disable_ht40, -1, 1) },
+       { INT_RANGE(disable_ht40, 0, 1) },
        { INT_RANGE(disable_sgi, 0, 1) },
        { INT_RANGE(disable_ldpc, 0, 1) },
        { INT_RANGE(ht40_intolerant, 0, 1) },