/* Initialize device properties */
extract_hid_props(idev, rec);
+ if (idev->disable_sdp)
+ device_set_refresh_discovery(device, false);
+
return idev;
}
bool le;
bool pending_paired; /* "Paired" waiting for SDP */
bool svc_refreshed;
+ bool refresh_discovery;
/* Manage whether this device can wake the system from suspend.
* - wake_support: Requires a profile that supports wake (i.e. HID)
} else {
#endif
/* Start passive SDP discovery to update known services */
- if (dev->bredr && !dev->svc_refreshed)
+ if (dev->bredr && !dev->svc_refreshed && dev->refresh_discovery)
device_browse_sdp(dev, NULL);
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
}
browse_request_free(req);
}
+void device_set_refresh_discovery(struct btd_device *dev, bool refresh)
+{
+ dev->refresh_discovery = refresh;
+}
+
static void device_set_svc_refreshed(struct btd_device *device, bool value)
{
if (device->svc_refreshed == value)
device->db_id = gatt_db_register(device->db, gatt_service_added,
gatt_service_removed, device, NULL);
+ device->refresh_discovery = true;
+
return btd_device_ref(device);
}
void device_set_wake_allowed(struct btd_device *device, bool wake_allowed,
guint32 id);
void device_set_wake_allowed_complete(struct btd_device *device);
+void device_set_refresh_discovery(struct btd_device *dev, bool refresh);
typedef void (*disconnect_watch) (struct btd_device *device, gboolean removal,
void *user_data);