From 3a19051954b0cafb184814fff90b373beb979eb2 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 31 Jan 2012 14:10:50 -0300 Subject: [PATCH] device: Fix doing SDP discovery for LE devices after bonding is complete --- src/device.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 596ec0b79..88cd4cc01 100644 --- a/src/device.c +++ b/src/device.c @@ -2380,8 +2380,12 @@ void device_bonding_complete(struct btd_device *device, uint8_t status) device->discov_timer = 0; } - device_browse_sdp(device, bonding->conn, bonding->msg, - NULL, FALSE); + if (device_is_bredr(device)) + device_browse_sdp(device, bonding->conn, bonding->msg, + NULL, FALSE); + else + device_browse_primary(device, bonding->conn, + bonding->msg, FALSE); bonding_request_free(bonding); } else { -- 2.47.3