diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-17 15:05:01 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-17 15:05:01 +0100 |
commit | 5a0328c7b039a90e988aaab8e03eb8ce5508d62b (patch) | |
tree | 35e3269c90e51aaef1444c10581ed7f1c3cc7725 /system-linux.c | |
parent | ebd3d8417c7a08c03de2d38e8f43422428dd4094 (diff) |
device: preserve orig_settings flags for querying device status
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c index 4ccc9d2..b190ec6 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1225,6 +1225,7 @@ int system_if_up(struct device *dev) { system_if_get_settings(dev, &dev->orig_settings); /* Only keep orig settings based on what needs to be set */ + dev->orig_settings.valid_flags = dev->orig_settings.flags; dev->orig_settings.flags &= dev->settings.flags; system_if_apply_settings(dev, &dev->settings, dev->settings.flags); return system_if_flags(dev->ifname, IFF_UP, 0); |