When creating the list of neighbor reports, skip nodes which can't
handle additional STAs.
Signed-off-by: David Bauer <mail@david-bauer.net>
if (strcmp(current_node->ssid, rn->node.ssid))
continue;
+ /* Skip nodes which can't handle additional STA */
+ if (rn->node.max_assoc && rn->node.n_assoc >= rn->node.max_assoc)
+ continue;
+
/* Check if this node is ranked lower than the last one */
n1 = usteer_node_better_neighbor(last, &rn->node);
n2 = usteer_node_better_neighbor(&rn->node, last);