usteer: add connected-since

Fetch the age of the association for STAs in order to implement minimum
intervals after which a STA is considered kickable.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2022-08-17 02:17:40 +02:00
parent 9e6002d29a
commit 837f144f6c
4 changed files with 8 additions and 0 deletions

1
sta.c
View File

@@ -150,6 +150,7 @@ void usteer_sta_disconnected(struct sta_info *si)
{
si->connected = STA_NOT_CONNECTED;
si->kick_time = 0;
si->connected_since = 0;
usteer_sta_info_update_timeout(si, config.local_sta_timeout);
}