uci_option_to_json_bool "$cfg" syslog
uci_option_to_json_bool "$cfg" ipv6
+ uci_option_to_json_bool "$cfg" local_mode
uci_option_to_json_bool "$cfg" load_kick_enabled
uci_option_to_json_bool "$cfg" assoc_steering
uci_option_to_json_string "$cfg" node_up_script
struct blob_attr *cur;
int rem;
+ if (config.local_mode)
+ return;
+
if (blob_pad_len(data) != len) {
MSG(DEBUG, "Invalid message length (header: %d, real: %d)\n", blob_pad_len(data), len);
return;
int timeout = config.remote_node_timeout;
list_for_each_entry_safe(node, tmp, &remote_nodes, list) {
- if (node->check++ > timeout)
+ if (config.local_mode || node->check++ > timeout)
remote_node_free(node);
}
}
usteer_update_time();
uloop_timeout_set(t, config.remote_update_interval);
- if (!avl_is_empty(&local_nodes) || host_info_blob) {
+ if (!config.local_mode &&
+ (!avl_is_empty(&local_nodes) || host_info_blob)) {
c = usteer_update_init();
for_each_local_node(node)
usteer_send_node(node, NULL);
_cfg(BOOL, syslog), \
_cfg(U32, debug_level), \
_cfg(BOOL, ipv6), \
+ _cfg(BOOL, local_mode), \
_cfg(U32, sta_block_timeout), \
_cfg(U32, local_sta_timeout), \
_cfg(U32, local_sta_update), \