return;
}
- if (iface->active == new_state)
+ if (iface->available == new_state)
return;
- iface->active = new_state;
+ iface->available = new_state;
if (new_state) {
if (iface->autostart && !config_init)
{
iface->autostart = true;
- if (!iface->active) {
+ if (!iface->available) {
interface_add_error(iface, "interface", "NO_DEVICE", NULL, 0);
return -1;
}
struct interface *iface;
list_for_each_entry(iface, &interfaces, list) {
- if (iface->active && iface->autostart)
+ if (iface->available && iface->autostart)
interface_set_up(iface);
}
}
blob_buf_init(&b, 0);
blobmsg_add_u8(&b, "up", iface->state == IFS_UP);
blobmsg_add_u8(&b, "pending", iface->state == IFS_SETUP);
- blobmsg_add_u8(&b, "active", iface->active);
+ blobmsg_add_u8(&b, "available", iface->available);
blobmsg_add_u8(&b, "autostart", iface->autostart);
if (iface->main_dev.dev) {
struct device *dev = iface->main_dev.dev;