device: restore cleared flags on device down openwrt-23.05
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 12:35:43 +0000 (13:35 +0100)
commitc18cc79d50002ab8529c21184aceb016c61ac61c
treea27589b2d11a45c2138fcee462bf6d1b19a19c4f
parent9cb0cb41830306ea9d78cc1982637d7b74b6700c
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