Skip to content

Commit

Permalink
hostapd: respect fixed channel BW in HE20 mode (coolsnowwolf#7629)
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 <[email protected]>

Co-authored-by: Jesus Fernandez Manzano <[email protected]>
  • Loading branch information
Beginner-Go and jesferman authored Aug 9, 2021
1 parent 27060c9 commit 6240e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/hostapd/files/hostapd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,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 6240e66

Please sign in to comment.