policy: count kick total

Always increase the kick-counter when usteer de-associates a STA. This
was previously exclusively done when kicking clients due to insufficient
SNR.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2022-08-18 00:41:41 +02:00
parent aadc562dcb
commit 3cc0f456f0
2 changed files with 1 additions and 2 deletions

1
ubus.c
View File

@@ -751,6 +751,7 @@ void usteer_ubus_kick_client(struct sta_info *si)
blobmsg_add_u8(&b, "deauth", 1);
ubus_invoke(ubus_ctx, ln->obj_id, "del_client", b.head, NULL, 0, 100);
usteer_sta_disconnected(si);
si->kick_count++;
si->roam_kick = current_time;
}