[OpenWrt-Devel] [PATCH 3/3] hostapd: allow to set vendor_elements via /etc/config/wireless

Roman Yeryomin leroi.lists at gmail.com
Wed May 13 07:57:09 EDT 2015


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 package/network/services/hostapd/files/netifd.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index 23d2e7e..1d1b098 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -164,6 +164,8 @@ hostapd_common_add_bss_config() {
 	config_add_int mcast_rate
 	config_add_array basic_rate
 	config_add_array supported_rates
+
+	config_add_string 'vendor_elements:string'
 }
 
 hostapd_set_bss_options() {
@@ -437,6 +439,9 @@ hostapd_set_bss_options() {
 		) > "$_macfile"
 	}
 
+	json_get_vars vendor_elements
+	[ -n "$vendor_elements" ] && append bss_conf "vendor_elements=$vendor_elements" "$N"
+
 	append "$var" "$bss_conf" "$N"
 	return 0
 }
-- 
2.1.4
_______________________________________________
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