diff options
author | Yury Shvedov <yshvedov@wimarksystems.com> | 2017-06-27 10:34:49 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 16:23:38 +0100 |
commit | ef3649d90e0b799a3a6efc45a77ae1d1719c9842 (patch) | |
tree | 9fba9893175468b08cc931ece5a7a8733e6521a9 /package/network | |
parent | 3027a68093a56bfa9e264f9680392925518caf55 (diff) | |
download | upstream-ef3649d90e0b799a3a6efc45a77ae1d1719c9842.tar.gz upstream-ef3649d90e0b799a3a6efc45a77ae1d1719c9842.tar.bz2 upstream-ef3649d90e0b799a3a6efc45a77ae1d1719c9842.zip |
hostapd: add acct_interval option
Make an ability to configure Accounting-Interim-Interval via UCI
Signed-off-by: Yury Shvedov <yshvedov@wimarksystems.com>
[add hostapd prefix, cleanup commit message]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 0e7bbcd43b6f4b54ecc5c40130b5f86cbc9f1c07)
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index e3fc0366d5..d42b6a036f 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -154,6 +154,7 @@ hostapd_common_add_bss_config() { config_add_string acct_server config_add_string acct_secret config_add_int acct_port + config_add_int acct_interval config_add_string dae_client config_add_string dae_secret @@ -211,8 +212,8 @@ hostapd_set_bss_options() { wps_pushbutton wps_label ext_registrar wps_pbc_in_m1 wps_ap_setup_locked \ 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 acct_server acct_secret acct_port \ - dynamic_vlan ieee80211w + iapp_interface eapol_version dynamic_vlan ieee80211w \ + acct_server acct_secret acct_port acct_interval set_default isolate 0 set_default maxassoc 0 @@ -257,6 +258,8 @@ hostapd_set_bss_options() { append bss_conf "acct_server_port=$acct_port" "$N" [ -n "$acct_secret" ] && \ append bss_conf "acct_server_shared_secret=$acct_secret" "$N" + [ -n "$acct_interval" ] && \ + append bss_conf "radius_acct_interim_interval=$acct_interval" "$N" } local vlan_possible="" |