mwan3: only send disconnected event if interface was connected before
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 8 Sep 2021 09:33:55 +0000 (11:33 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 17 Oct 2022 13:17:31 +0000 (15:17 +0200)
commit997c0842ca8b05de83a1ecd3160ecd18fa3d8aee
tree3e192c3dcf69bc9c75bbee119b05ed46995423aa
parenta6606bed17bbddb7ae10405f6b0358fdda26fd17
mwan3: only send disconnected event if interface was connected before

Up to now on every interface down event a mwan3 disconnected event was
send. This is wrong because if the interface was never connected, then a
disconnected event should not get generated. This commit fixes this bug.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/sbin/mwan3track