ubus: skip neighbors which exceed their assoc limit

Don't add neighbors which can not be associated to due to their
max-assoc limit.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2022-03-16 23:13:54 +01:00
parent 86e72970e8
commit 96ef3a67f5

3
ubus.c
View File

@@ -588,6 +588,9 @@ usteer_add_nr_entry(struct usteer_node *ln, struct usteer_node *node)
if (strcmp(ln->ssid, node->ssid) != 0)
return false;
if (!usteer_policy_node_below_max_assoc(node))
return false;
blobmsg_parse_array(policy, ARRAY_SIZE(tb), tb,
blobmsg_data(node->rrm_nr),
blobmsg_data_len(node->rrm_nr));