diff mbox

[LEDE-DEV] Adding acct_interval to wireless configuration

Message ID 2e1d1e40-844f-d360-1b9e-18defe4553d6@wimarksystems.com
State Superseded
Headers show

Commit Message

Yury Shvedov June 27, 2017, 6:23 a.m. UTC
Like that?

Make an ability to configure Accounting-Interim-Interval via UCI

Signed-off-by: Yury Shvedov <yshvedov@wimarksystems.com>
---
  package/network/services/hostapd/files/hostapd.sh | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)

          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
@@ -249,6 +250,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=""

Comments

Stijn Tintel June 27, 2017, 6:38 a.m. UTC | #1
On 27-06-17 08:23, Yury Shvedov wrote:
> Like that?
No, the patch is still mangled, and it is not sent with git send-email,
but with Thunderbird. Please have a look at
https://www.kernel.org/pub/software/scm/git/docs/git-send-email.html,
you can pass your SMTP server credentials to it. Alternatively, create a
PR on Github.

Thanks,
Stijn
diff mbox

Patch

diff --git a/package/network/services/hostapd/files/hostapd.sh 
b/package/network/services/hostapd/files/hostapd.sh
index 86e9a32e5b..2b8023c228 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -151,6 +151,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
@@ -207,8 +208,8 @@  hostapd_set_bss_options() {