hostapd: respect fixed channel BW in HE20 mode
authorJesus Fernandez Manzano <jesus.manzano@galgus.net>
Tue, 20 Jul 2021 10:13:49 +0000 (12:13 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 17:30:04 +0000 (18:30 +0100)
When using htmode 'HE20' with a radio mode that uses wpa-supplicant
(like mesh or sta), it will default to 40 MHz bw if disable_ht40 is not
set. This commit fixes this behaviour.

Signed-off-by: Jesus Fernandez Manzano <jesus.manzano@galgus.net>
(cherry-picked from commit af83e3ce0ff40dcecbe913676343bf86846294f7)

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

index d29bc13ccc3151e6ce2ad6db6515722ab4583703..bbbbf9994be514d664a0640554e4920010766332 100644 (file)
@@ -1121,7 +1121,7 @@ wpa_supplicant_set_fixed_freq() {
        append network_data "frequency=$freq" "$N$T"
        case "$htmode" in
                NOHT) append network_data "disable_ht=1" "$N$T";;
-               HT20|VHT20) append network_data "disable_ht40=1" "$N$T";;
+               HE20|HT20|VHT20) append network_data "disable_ht40=1" "$N$T";;
                HT40*|VHT40*|VHT80*|VHT160*) append network_data "ht40=1" "$N$T";;
        esac
        case "$htmode" in