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:
3
policy.c
3
policy.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user