If phy htmode is set to HT* or VHT*, set wpa_supplicant to HT20.
Previously it wasnt set at all.

Signed-off-by: Arvid E. Picciani <a...@exys.org>
---
 package/network/services/hostapd/files/netifd.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index 2b5bc06..311fa51 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -568,7 +568,11 @@ wpa_supplicant_add_network() {
        }

        local ht_str
-       [ -n "$ht" ] && append network_data "htmode=$ht" "$N$T"
+       case "$htmode" in
+               HT* | VHT*)
+                       append network_data "htmode=HT20" "$N$T"
+                       ;;
+       esac

        cat >> "$_config" <<EOF
 network={
--
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to