diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-19 01:09:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-07-19 01:09:59 +0200 |
commit | ed92851c92617636d6f891b2e9926559feef9807 (patch) | |
tree | 4f0603b95570da9e8a84811f3b36fb3c7909f566 /device.c | |
parent | 7dcacc6189ff255b87d9779facedfb15e140d0d3 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |