aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorEnrique Rodríguez Valencia <enrique.rodriguez@galgus.net>2020-05-12 19:37:28 +0200
committerDaniel Golle <daniel@makrotopia.org>2020-05-28 14:06:55 +0100
commit6e8bb689969529922f9afeb4026fce6b80d72e39 (patch)
treed34180b523d5ae4008d001dbae694c4e4870cb98 /package/network
parent84c96de60630418275f7d2ea7d2e31bc41cee175 (diff)
downloadupstream-6e8bb689969529922f9afeb4026fce6b80d72e39.tar.gz
upstream-6e8bb689969529922f9afeb4026fce6b80d72e39.tar.bz2
upstream-6e8bb689969529922f9afeb4026fce6b80d72e39.zip
hostapd: Add disable_vht when using NOHT/HT* modes
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>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 637f298ad9..09de3994b8 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -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
}