[openwrt/openwrt] hostapd: respect fixed channel BW in HE20 mode
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 23 09:44:33 PST 2021
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/345f8fc7f33843ea1cc2a1741409bc53a57120e5
commit 345f8fc7f33843ea1cc2a1741409bc53a57120e5
Author: Jesus Fernandez Manzano <jesus.manzano at galgus.net>
AuthorDate: Tue Jul 20 12:13:49 2021 +0200
hostapd: respect fixed channel BW in HE20 mode
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 at galgus.net>
(cherry-picked from commit af83e3ce0ff40dcecbe913676343bf86846294f7)
---
package/network/services/hostapd/files/hostapd.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index d29bc13ccc..bbbbf9994b 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -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
More information about the lede-commits
mailing list