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>
Wed, 26 May 2021 09:48:14 +0000 (11:48 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.sh

index 7f03396cb5600dc42aa5c8aeab5725203930adf6..9405127b1568bb58ce8c4031107158231e78b21c 100644 (file)
@@ -1119,9 +1119,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
 }