With this patch we make sure that scan is restarted if it was holded for connection purpose. --- android/gatt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 775adec..5384a72 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -481,6 +481,12 @@ reply: /* If connection did not succeed, destroy device */ if (status) destroy_device(dev); + + /* Check if we should restart scan */ + if (scanning) + bt_le_discovery_start(le_device_found_handler); + + /*FIXME: What to do if discovery won't start here. */ } static int connect_le(struct gatt_device *dev) -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html