Device is scanned only if previous connection setup failed