[OpenWrt-Devel] [PATCH] hostapd/netifd: fix missing htmode for wpa_supplicant

Arvid E. Picciani aep at exys.org
Tue Sep 16 07:31:25 EDT 2014


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 <aep at 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 at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list