Commit a9f35951 authored by John Crispin's avatar John Crispin

hostapd: all overriding interface configs with file includes

Signed-off-by: John Crispin's avatarJohn Crispin <john@phrozen.org>
parent 2ea5ef0f
......@@ -259,9 +259,10 @@ hostapd_common_add_bss_config() {
config_add_boolean sae_require_mfp
config_add_string 'owe_transition_bssid:macaddr' 'owe_transition_ssid:string'
config_add_string config_fragment
}
hostapd_set_bss_options() {
hostapd_set_bss_options_uci() {
local var="$1"
local phy="$2"
local vif="$3"
......@@ -657,6 +658,23 @@ hostapd_set_bss_options() {
return 0
}
hostapd_set_bss_options() {
local bss_conf bss_md5sum config_fragment
local var="$1"
json_get_vars config_fragment
[ -n "${config_fragment}" -a -f "${config_fragment}" ] && {
bss_conf=$(cat $config_fragment)
bss_md5sum=$(echo $config_fragment | md5sum | cut -d" " -f1)
append bss_conf "config_id=$bss_md5sum" "$N"
append "$var" "$bss_conf" "$N"
return 0
}
hostapd_set_bss_options_uci $@
}
hostapd_set_log_options() {
local var="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment