Export and rename below_max_assoc in preperation to use with
band-steering.
Signed-off-by: David Bauer <mail@david-bauer.net>
return !below_load_threshold(node_cur) && below_load_threshold(node_new);
}
-static bool
-below_max_assoc(struct usteer_node *node)
+bool
+usteer_policy_node_below_max_assoc(struct usteer_node *node)
{
return !node->max_assoc || node->n_assoc < node->max_assoc;
}
int new_signal = si_new->signal;
uint32_t reasons = 0;
- if (!below_max_assoc(new_node))
+ if (!usteer_policy_node_below_max_assoc(new_node))
return 0;
if (!over_min_signal(new_node, new_signal))
int usteer_local_node_get_beacon_interval(struct usteer_local_node *ln);
+bool usteer_policy_node_below_max_assoc(struct usteer_node *node);
+
void usteer_ubus_init(struct ubus_context *ctx);
void usteer_ubus_kick_client(struct sta_info *si);
int usteer_ubus_trigger_client_scan(struct sta_info *si);