[DEV_ATTR_IGMPVERSION] = { .name = "igmpversion", .type = BLOBMSG_TYPE_INT32 },
[DEV_ATTR_MLDVERSION] = { .name = "mldversion", .type = BLOBMSG_TYPE_INT32 },
[DEV_ATTR_NEIGHREACHABLETIME] = { .name = "neighreachabletime", .type = BLOBMSG_TYPE_INT32 },
+ [DEV_ATTR_RPS] = { .name = "rps", .type = BLOBMSG_TYPE_BOOL },
+ [DEV_ATTR_XPS] = { .name = "xps", .type = BLOBMSG_TYPE_BOOL },
};
const struct uci_blob_param_list device_attr_list = {
s->flags |= DEV_OPT_NEIGHREACHABLETIME;
}
+ if ((cur = tb[DEV_ATTR_RPS]))
+ s->rps = blobmsg_get_bool(cur);
+ else
+ s->rps = true;
+
+ if ((cur = tb[DEV_ATTR_XPS]))
+ s->xps = blobmsg_get_bool(cur);
+ else
+ s->xps = true;
+
device_set_disabled(dev, disabled);
}
system_if_clear_state(dev);
device_check_state(dev);
+ dev->settings.rps = true;
+ dev->settings.xps = true;
return 0;
}
}
}
-enum dev_change_type
+static enum dev_change_type
device_set_config(struct device *dev, const struct device_type *type,
struct blob_attr *attr)
{