sta: schedule sta_info timeout on creation
authorDavid Bauer <mail@david-bauer.net>
Mon, 25 Oct 2021 12:52:59 +0000 (14:52 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 29 Oct 2021 17:37:48 +0000 (19:37 +0200)
commitbee2caf184ccaa324e288ac282bc135405315e2d
treec858cf50bf16bb2ee0a0f204ff9cf83c3311851d
parentae32cb9632e6712b487b035770e12245e5b0bf8d
sta: schedule sta_info timeout on creation

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>
sta.c