Diff between 32b758e90f3d49d5473ad7973266822b7e8a4536 and 3a19051954b0cafb184814fff90b373beb979eb2

Changed Files

File Additions Deletions Status
src/device.c +6 -2 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 596ec0b..88cd4cc 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 {