If scan fails, the scan callback is called.
When scan results are available, it is called as well.
In both cases, the device is no longer scanning when it's called.
DBG("result %d", result);
DBG("result %d", result);
- if (result < 0) {
- connman_device_set_scanning(device, FALSE);
- return;
- }
-
- connman_device_set_scanning(device, TRUE);
+ connman_device_set_scanning(device, FALSE);
}
static int wifi_scan(struct connman_device *device)
}
static int wifi_scan(struct connman_device *device)