[OpenWrt-Devel] [PATCH] fix typo in netifd.sh

Cezary Jackiewicz cezary.jackiewicz at gmail.com
Tue Jan 20 12:44:14 EST 2015


$ht variable is not passed. $htmode is.

With this, wpa_supplicant-phy0.conf contains htmode line if htmode is set in config.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz at gmail.com>
---

diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index d625709..436eee3 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -595,8 +595,7 @@ wpa_supplicant_add_network() {
 		append network_data "mcast_rate=$mc_rate" "$N$T"
 	}
 
-	local ht_str
-	[ -n "$ht" ] && append network_data "htmode=$ht" "$N$T"
+	[ -n "$htmode" ] && append network_data "htmode=$htmode" "$N$T"
 
 	cat >> "$_config" <<EOF
 network={


-- 
Pozdrawiam,
 Cezary Jackiewicz
_______________________________________________
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