In case of EHOSTDOWN/page timeout the code should not proceed with the
next profile as it is very likely it will fail again, moreover the page
timeout is configurable and should be enough for getting a response from
the remote device in a reasonable time.
if (dev->pending == NULL)
return;
+ if (!dev->connected && err == -EHOSTDOWN)
+ goto done;
+
pending = dev->pending->data;
l = find_service_with_profile(dev->pending, profile);
if (l != NULL)
if (connect_next(dev) == 0)
return;
+done:
if (!dev->connect)
return;