Skip to content

Commit

Permalink
hostapd: respect fixed channel BW in HE20 mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jesferman authored and hauke committed Aug 8, 2021
1 parent 891c867 commit af83e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/hostapd/files/hostapd.sh
Expand Up @@ -1166,7 +1166,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
Expand Down

0 comments on commit af83e3c

Please sign in to comment.