[OpenWrt-Devel] [PATCH 1/2] netifd : Apply device settings when existing device becomes external

Hans Dedecker dedeckeh at gmail.com
Tue Sep 1 08:43:57 EDT 2015


Make sure device settings are applied when existing device becomes external

Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/device.c b/device.c
index 4a8db70..0d73138 100644
--- a/device.c
+++ b/device.c
@@ -446,6 +446,7 @@ device_get(const char *name, int create)
 	dev = avl_find_element(&devices, name, dev, avl);
 	if (dev) {
 		if (create > 1 && !dev->external) {
+			system_if_apply_settings(dev, &dev->settings, dev->settings.flags);
 			dev->external = true;
 			device_set_present(dev, true);
 		}
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list