aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-05-07 12:37:00 +0200
committerFelix Fietkau <nbd@nbd.name>2017-09-28 22:45:59 +0200
commit9f5f5d250e7537f15fd668fa737ead719f910245 (patch)
tree64784ea6d77025df72fcb786362bd3b17396884d /package/network/services/hostapd/files
parentf4a6daa5da61a53a717e1c8043d02dd0cfcdc5e0 (diff)
downloadupstream-9f5f5d250e7537f15fd668fa737ead719f910245.tar.gz
upstream-9f5f5d250e7537f15fd668fa737ead719f910245.tar.bz2
upstream-9f5f5d250e7537f15fd668fa737ead719f910245.zip
hostapd: add support for specifying device config options directly in uci
This is useful for tuning some more exotic parameters where it doesn't make sense to attempt to cover everything in uci directly Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/hostapd/files')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index c62619abea..3766b7a7c9 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -67,6 +67,7 @@ hostapd_common_add_device_config() {
config_add_boolean legacy_rates
config_add_string acs_chan_bias
+ config_add_array hostapd_options
hostapd_add_log_config
}
@@ -127,6 +128,11 @@ hostapd_prepare_device_config() {
[ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N"
append base_cfg "beacon_int=$beacon_int" "$N"
+ json_get_values opts hostapd_options
+ for val in $opts; do
+ append base_cfg "$val" "$N"
+ done
+
cat > "$config" <<EOF
driver=$driver
$base_cfg