If there is already a service for a given profile there is no point in
probing it again.
Change-Id: I932148183acaf832763e7cc9e419312957d91d72
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
struct btd_profile *profile,
GSList *uuids)
{
+ GSList *l;
struct btd_service *service;
if (profile->device_probe == NULL)
if (!device_match_profile(device, profile, uuids))
return NULL;
+ l = find_service_with_profile(device->services, profile);
+ if (l)
+ return l->data;
+
service = service_create(device, profile);
if (service_probe(service)) {