Diff between 4f589213525a15177ff2a6a9e231b822219fc368 and 21fb4064f252a08b87418125cf66fb7460e0ed95

Changed Files

File Additions Deletions Status
android/bluetooth.c +5 -8 modified

Full Patch

diff --git a/android/bluetooth.c b/android/bluetooth.c
index 64a7696..1422fb0 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -4199,19 +4199,16 @@ static void pair_device_complete(uint8_t status, uint16_t length,
 
 	DBG("status %u", status);
 
-	/*
-	 * On success bond state change will be send when new link key or LTK
-	 * event is received
-	 */
-	if (status == MGMT_STATUS_SUCCESS)
-		return;
-
 	dev = find_device(&rp->addr.bdaddr);
 	if (!dev)
 		return;
 
+	/*
+	 * Update pairing and paired status. Bonded status will be updated once
+	 * any link key come
+	 */
 	update_device_state(dev, rp->addr.type, status_mgmt2hal(status), false,
-								false, false);
+								!status, false);
 }
 
 static uint8_t select_device_bearer(struct device *dev)