connman_bool_t powered);
int connman_device_set_scanning(struct connman_device *device,
connman_bool_t scanning);
-void connman_device_cleanup_scanning(struct connman_device *device);
int connman_device_set_disconnected(struct connman_device *device,
connman_bool_t disconnected);
if (state == WPA_INVALID)
return;
- if (task->scanning == TRUE && state != WPA_SCANNING) {
- connman_device_cleanup_scanning(task->device);
- task->scanning = FALSE;
- }
-
prevstate = task->state;
task->state = state;
DBUS_TYPE_BOOLEAN, &device->scanning);
}
-static void mark_network_available(gpointer key, gpointer value,
- gpointer user_data)
-{
- struct connman_network *network = value;
-
- connman_network_set_available(network, TRUE);
-}
-
-void connman_device_cleanup_scanning(struct connman_device *device)
-{
- device->scanning = FALSE;
-
- scanning_changed(device);
-
- g_hash_table_foreach(device->networks,
- mark_network_available, NULL);
-}
-
/**
* connman_device_set_scanning:
* @device: device structure