device_config is unneeded since add_dynamic is used to create aliases
checking of setup state is unneeded because of race condition fixes
Signed-off-by: Steven Barth <steven@midlink.org>
if (!iface)
return UBUS_STATUS_UNKNOWN_ERROR;
- iface->device_config = true;
-
config = blob_memdup(msg);
if (!config)
goto error;
if (!dev || !dev->default_config)
return UBUS_STATUS_UNKNOWN_ERROR;
- device_set_config(dev, dev->type, msg);
-
- if (iface->state != IFS_SETUP && iface->state != IFS_UP)
- vlist_delete(&interfaces, &iface->node);
-
return UBUS_STATUS_OK;
error: