system-linux: fix race condition on bringing up wireless devices
authorFelix Fietkau <nbd@nbd.name>
Tue, 7 Nov 2023 12:22:06 +0000 (13:22 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 7 Nov 2023 12:22:09 +0000 (13:22 +0100)
commit516ab774cc16d4b04b3b17a067cbf2649f1adaeb
tree2d4758a633d8d342362b41af0229bdfe0768cf0f
parent40ed7363caf2b22b6e29ed9d9948189c2bc4c8f3
system-linux: fix race condition on bringing up wireless devices

When wireless devices are added via hotplug before their state is set to up,
adding routes to the device can fail in the kernel.
Since the up state is managed externally, use it as input for netifd's device
present state, so that they are only brought up when ready.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-linux.c