summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-19 01:09:56 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-07-19 01:09:59 +0200
commited92851c92617636d6f891b2e9926559feef9807 (patch)
tree4f0603b95570da9e8a84811f3b36fb3c7909f566 /device.c
parent7dcacc6189ff255b87d9779facedfb15e140d0d3 (diff)
device: apply initial settings when creating an external device
Fixes RPS/XPS settings for wlan devices Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'device.c')
-rw-r--r--device.c2
1 files changed, 2 insertions, 0 deletions
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;
}