aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2018-04-25 23:27:00 +0200
committerJohn Crispin <john@phrozen.org>2018-05-07 10:44:09 +0200
commit0a7657c300354451d0a1ef04b9245eb628f03709 (patch)
treee7e68fbe2bb0ff0df4d3ab9a982f1b860142e1f0 /package
parentb6a4c674684585902ee07a4ba7c89d988d633650 (diff)
downloadupstream-0a7657c300354451d0a1ef04b9245eb628f03709.tar.gz
upstream-0a7657c300354451d0a1ef04b9245eb628f03709.tar.bz2
upstream-0a7657c300354451d0a1ef04b9245eb628f03709.zip
hostapd: add channel utilization as config option
Add the channel utilization as hostapd configuration option. Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index d3633a2a55..5065978f3c 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -229,7 +229,8 @@ hostapd_set_bss_options() {
wps_independent wps_device_type wps_device_name wps_manufacturer wps_pin \
macfilter ssid wmm uapsd hidden short_preamble rsn_preauth \
iapp_interface eapol_version dynamic_vlan ieee80211w nasid \
- acct_server acct_secret acct_port acct_interval
+ acct_server acct_secret acct_port acct_interval \
+ bss_load_update_period chan_util_avg_period
set_default isolate 0
set_default maxassoc 0
@@ -243,7 +244,9 @@ hostapd_set_bss_options() {
set_default tdls_prohibit 0
set_default eapol_version 0
set_default acct_port 1813
-
+ set_default bss_load_update_period 60
+ set_default chan_util_avg_period 600
+
append bss_conf "ctrl_interface=/var/run/hostapd"
if [ "$isolate" -gt 0 ]; then
append bss_conf "ap_isolate=$isolate" "$N"
@@ -255,6 +258,8 @@ hostapd_set_bss_options() {
append bss_conf "ap_max_inactivity=$max_inactivity" "$N"
fi
+ append bss_conf "bss_load_update_period=$bss_load_update_period" "$N"
+ append bss_conf "chan_util_avg_period=$chan_util_avg_period" "$N"
append bss_conf "disassoc_low_ack=$disassoc_low_ack" "$N"
append bss_conf "preamble=$short_preamble" "$N"
append bss_conf "wmm_enabled=$wmm" "$N"