From: Felix Fietkau Date: Sat, 18 Jul 2015 23:09:56 +0000 (+0200) Subject: device: apply initial settings when creating an external device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ed92851c92617636d6f891b2e9926559feef9807;p=project%2Fnetifd.git device: apply initial settings when creating an external device Fixes RPS/XPS settings for wlan devices Signed-off-by: Felix Fietkau --- diff --git a/device.c b/device.c index fec5bce..b5bee11 100644 --- a/device.c +++ b/device.c @@ -410,6 +410,8 @@ device_create_default(const char *name, bool external) dev->set_state = simple_device_set_state; device_init(dev, &simple_device_type, name); dev->default_config = true; + if (external) + system_if_apply_settings(dev, &dev->settings, dev->settings.flags); return dev; }