hostapd: Add disable_vht when using NOHT/HT* modes
authorEnrique Rodríguez Valencia <enrique.rodriguez@galgus.net>
Tue, 12 May 2020 17:37:28 +0000 (19:37 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 28 May 2020 13:06:55 +0000 (14:06 +0100)
disable_vht parameter needs to be set when using wpa_supplicant NOHT/HT* modes.

Signed-off-by: Enrique Rodríguez Valencia <enrique.rodriguez@galgus.net>
package/network/services/hostapd/files/hostapd.sh

index 637f298ad9142a1725879192f4cfbae58a83b947..09de3994b87c7d656800e57b8d15978fd6b54f76 100644 (file)
@@ -772,7 +772,8 @@ wpa_supplicant_set_fixed_freq() {
        case "$htmode" in
                VHT80) append network_data "max_oper_chwidth=1" "$N$T";;
                VHT160) append network_data "max_oper_chwidth=2" "$N$T";;
-               *) append network_data "max_oper_chwidth=0" "$N$T";;
+               VHT20|VHT40) append network_data "max_oper_chwidth=0" "$N$T";;
+               *) append network_data "disable_vht=1" "$N$T";;
        esac
 }