From: David Bauer Date: Sat, 1 Jan 2022 17:00:45 +0000 (+0100) Subject: config: make remote_node_timeout configurable X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5610aceea54ba6d5f6499a37b958303c6d5a5b20;p=project%2Fusteer.git config: make remote_node_timeout configurable The logic for customizing the remote_node_timeout config option was missing. The default value of 10 could not be altered by a user. Add the required logic and a short explanation of the config-option to the default configuration. Signed-off-by: David Bauer --- diff --git a/openwrt/usteer/files/etc/config/usteer b/openwrt/usteer/files/etc/config/usteer index 2fe1c98..f0b8867 100644 --- a/openwrt/usteer/files/etc/config/usteer +++ b/openwrt/usteer/files/etc/config/usteer @@ -44,6 +44,9 @@ config usteer # Interval (ms) between sending state updates to other APs #option remote_update_interval 1000 + # Number of remote update intervals after which a remote-node is deleted + #option remote_node_timeout 10 + # Allow rejecting assoc requests for steering purposes (0/1) #option assoc_steering 0 diff --git a/openwrt/usteer/files/etc/init.d/usteer b/openwrt/usteer/files/etc/init.d/usteer index 1f9ab06..d3579e7 100755 --- a/openwrt/usteer/files/etc/init.d/usteer +++ b/openwrt/usteer/files/etc/init.d/usteer @@ -77,7 +77,7 @@ uci_usteer() { sta_block_timeout local_sta_timeout local_sta_update \ max_neighbor_reports max_retry_band seen_policy_timeout \ load_balancing_threshold band_steering_threshold \ - remote_update_interval \ + remote_update_interval remote_node_timeout\ min_connect_snr min_snr signal_diff_threshold \ initial_connect_delay roam_process_timeout\ roam_kick_delay roam_scan_tries \ diff --git a/ubus.c b/ubus.c index 83a7558..9b985f4 100644 --- a/ubus.c +++ b/ubus.c @@ -152,6 +152,7 @@ struct cfg_item { _cfg(U32, load_balancing_threshold), \ _cfg(U32, band_steering_threshold), \ _cfg(U32, remote_update_interval), \ + _cfg(U32, remote_node_timeout), \ _cfg(BOOL, assoc_steering), \ _cfg(I32, min_connect_snr), \ _cfg(I32, min_snr), \