local-node: prioritize neighbor candidates

Prioritize neighbor candidates installed to hostapd. Add a new config
option to set a limit for neighbor reports installed to hostapd. This is
due to the fact, most devices will only evaluate a certain amount of
neighbor reports. Furthermore, the number of neighbor reports possible
is limited by the maximum frame size.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2021-09-29 00:42:37 +02:00
parent 4862080de7
commit 532a48d23e
7 changed files with 141 additions and 11 deletions

View File

@@ -152,6 +152,8 @@ struct usteer_config {
bool assoc_steering;
uint32_t max_neighbor_reports;
uint32_t band_steering_threshold;
uint32_t load_balancing_threshold;
@@ -274,6 +276,7 @@ static inline const char *usteer_node_name(struct usteer_node *node)
}
void usteer_node_set_blob(struct blob_attr **dest, struct blob_attr *val);
struct usteer_node *usteer_node_get_next_neighbor(struct usteer_node *current_node, struct usteer_node *last);
bool usteer_check_request(struct sta_info *si, enum usteer_event_type type);
void config_set_interfaces(struct blob_attr *data);