diff --git a/src/device.c b/src/device.c
index 1b3c1bb..9736bb6 100644
--- a/src/device.c
+++ b/src/device.c
struct browse_req {
DBusMessage *msg;
struct btd_device *device;
+ uint8_t bdaddr_type;
GSList *match_uuids;
GSList *profiles_added;
sdp_list_t *records;
struct btd_device *dev = req->device;
DBusMessage *reply = NULL;
+ if (req->bdaddr_type != bdaddr_type)
+ return;
+
if (!req->msg)
goto done;
}
static struct browse_req *browse_request_new(struct btd_device *device,
+ uint8_t bdaddr_type,
DBusMessage *msg)
{
struct browse_req *req;
req = g_new0(struct browse_req, 1);
req->device = device;
+ req->bdaddr_type = bdaddr_type;
device->browse = req;
struct btd_adapter *adapter = device->adapter;
struct browse_req *req;
- req = browse_request_new(device, msg);
+ req = browse_request_new(device, device->bdaddr_type, msg);
if (!req)
return -EBUSY;
uuid_t uuid;
int err;
- req = browse_request_new(device, msg);
+ req = browse_request_new(device, BDADDR_BREDR, msg);
if (!req)
return -EBUSY;