The codes looks to have a race-condition, where disconnected sta_infos
are created without scheduling a timeout.
As sta_infos are not connected by default, schedule the timeout upon
sta_info creation.
Fixes spurious spamming of "Refuse to add an already expired station
entry" on remote nodes.
Signed-off-by: David Bauer <mail@david-bauer.net>
si->created = current_time;
*create = true;
+ /* Node is by default not connected. */
+ si->connected = STA_NOT_CONNECTED;
+ usteer_sta_info_update_timeout(si, config.local_sta_timeout);
+
return si;
}