if (!wdev->autostart)
return;
- if (!force && (wdev->state != IFS_DOWN || config_init))
+ if ((!force && wdev->state != IFS_DOWN) || config_init)
return;
free(wdev->prev_config);
if (wdev->config_state != IFC_NORMAL)
return;
+ wdev->config_update = false;
if (s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) {
wireless_device_reconf(wdev);
return;
free(wdev->config);
wdev->config = blob_memdup(new_config);
wdev->disabled = disabled;
- wdev_set_config_state(wdev, IFC_RELOAD);
+ wdev->config_update = true;
}
static void
free(vif_old);
}
- wdev_set_config_state(wdev, IFC_RELOAD);
+ wdev->config_update = true;
}
/* parse blob config into the vlan object */
free(vlan_old);
}
- wdev_set_config_state(wdev, IFC_RELOAD);
+ wdev->config_update = true;
}
/* vlist update call for station list */
free(sta_old);
}
- wdev_set_config_state(wdev, IFC_RELOAD);
+ wdev->config_update = true;
}
static void
{
struct wireless_device *wdev;
- vlist_for_each_element(&wireless_devices, wdev, node)
+ vlist_for_each_element(&wireless_devices, wdev, node) {
+ if (wdev->config_update)
+ wdev_set_config_state(wdev, IFC_RELOAD);
__wireless_device_set_up(wdev, 0);
+ }
}
void wireless_device_hotplug_event(const char *name, bool add)