X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.c;h=092c2d9d314d48188bdf02da85169af166969e77;hp=3ca867c68fb2a20950d369de3481293b8c22b78b;hb=944f30d3f96577464545dd35691f96b06fbcc6ab;hpb=1268b8222a3613c2ee36cc7d3006e1989f068a52 diff --git a/device.c b/device.c index 3ca867c..092c2d9 100644 --- a/device.c +++ b/device.c @@ -32,7 +32,6 @@ static struct avl_tree devices; static const struct blobmsg_policy dev_attrs[__DEV_ATTR_MAX] = { [DEV_ATTR_TYPE] = { .name = "type", .type = BLOBMSG_TYPE_STRING }, - [DEV_ATTR_IFNAME] = { .name = "ifname", .type = BLOBMSG_TYPE_ARRAY }, [DEV_ATTR_MTU] = { .name = "mtu", .type = BLOBMSG_TYPE_INT32 }, [DEV_ATTR_MACADDR] = { .name = "macaddr", .type = BLOBMSG_TYPE_STRING }, [DEV_ATTR_TXQUEUELEN] = { .name = "txqueuelen", .type = BLOBMSG_TYPE_INT32 }, @@ -371,6 +370,8 @@ int device_init(struct device *dev, const struct device_type *type, const char * system_if_clear_state(dev); device_check_state(dev); + dev->settings.rps = true; + dev->settings.xps = true; return 0; }