From 9372c0d4e9edd274d4206defed5edaacd2d8fe6c Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Tue, 13 Feb 2018 16:47:40 +0100 Subject: [PATCH] update --- src/storage/datastorage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index 4035977..1d15b8c 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -437,7 +437,7 @@ void kick_clients(uint8_t bssid[], uint32_t id) { // kick after algorithm decided to kick several times // + rssi is changing a lot // + chan util is changing a lot - // + ping pong behavior of clients will be reduced... + // + ping pong behavior of clients will be reduced client_array[j].kick_count++; if(client_array[j].kick_count < dawn_metric.min_kick_count){ continue; @@ -484,6 +484,8 @@ void kick_clients(uint8_t bssid[], uint32_t id) { } else { printf("AP is best. Client will stay:\n"); print_client_entry(client_array[j]); + // set kick counter to 0 again + client_array[j].kick_count = 0; } }