hostapd: fix max_oper_chwidth setting for HE
authorFelix Fietkau <nbd@nbd.name>
Tue, 18 May 2021 17:08:28 +0000 (19:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 17:30:04 +0000 (18:30 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 2319cf4ec048e50a7d3885d19dc27663b45e258d)

package/network/services/hostapd/files/hostapd.sh

index bbbbf9994be514d664a0640554e4920010766332..b5388ee46c0daffd30b80d93bbb37b831dbe04c5 100644 (file)
@@ -1128,9 +1128,9 @@ wpa_supplicant_set_fixed_freq() {
                VHT*) append network_data "vht=1" "$N$T";;
        esac
        case "$htmode" in
-               VHT80) append network_data "max_oper_chwidth=1" "$N$T";;
-               VHT160) append network_data "max_oper_chwidth=2" "$N$T";;
-               VHT20|VHT40) append network_data "max_oper_chwidth=0" "$N$T";;
+               HE80|VHT80) append network_data "max_oper_chwidth=1" "$N$T";;
+               HE160|VHT160) append network_data "max_oper_chwidth=2" "$N$T";;
+               HE20|HE40|VHT20|VHT40) append network_data "max_oper_chwidth=0" "$N$T";;
                *) append network_data "disable_vht=1" "$N$T";;
        esac
 }