diff mbox

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

Message ID 1431518229-12192-1-git-send-email-roman@advem.lv
State Changes Requested
Delegated to: Jo-Philipp Wich
Headers show

Commit Message

Roman Yeryomin May 13, 2015, 11:57 a.m. UTC
Signed-off-by: Roman Yeryomin <roman@advem.lv>
---
 package/network/services/hostapd/files/netifd.sh | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

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
 }