policy: allow disabling load balancing

Load-balancing only makes sense where multiple APs are deployed in the
same area. Enabling load-balancing between APs in different rooms might
steer clients to APs with a much lower signal strength, resulting in
lower data rates and inefficient use of airtime.

Allow disabling load balancing by setting the threshold to 0.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
Stijn Tintel
2022-06-27 16:16:21 +03:00
parent 7afab9604b
commit 5be681931f

View File

@@ -29,6 +29,9 @@ below_assoc_threshold(struct usteer_node *node_cur, struct usteer_node *node_new
bool ref_5g = node_cur->freq > 4000;
bool node_5g = node_new->freq > 4000;
if (!config.load_balancing_threshold)
return false;
if (ref_5g && !node_5g)
n_assoc_new += config.band_steering_threshold;
else if (!ref_5g && node_5g)