device: restore cleared flags on device down
authorErik Karlsson <erik.karlsson@genexis.eu>
Tue, 5 Dec 2023 23:22:58 +0000 (00:22 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 Jan 2024 11:18:13 +0000 (12:18 +0100)
commitf01345ec13b9b27ffd314d8689fb2d3f9c81a47d
tree43c6e3b59b21d4c429ced5ad5e612928d78a2e67
parent4219e99eeec7514657f5838eb4b4b5eb28ee1271
device: restore cleared flags on device down

In case flags have been cleared because settings failed to apply,
restore them when the device is brought down so that they will be
re-attempted the next time the device is brought up.

Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
device.c