Diff between 46c2378f0065eaea882569831247e7295cca287b and 224b6b8088b725c5f3755fdf377f78b13dcdf31e
Changed Files
| File | Additions | Deletions | Status |
| android/bluetooth.c | +4 | -1 | modified |
Full Patch
diff --git a/android/bluetooth.c b/android/bluetooth.c
index 047ddb1..48f5186 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -194,8 +194,11 @@ static void store_device_info(struct device *dev)
char **uuids = NULL;
char *str;
+ /* We only store bonded devices and need to modify the storage
+ * if the state is either NONE or BONDED.
+ */
if (dev->bond_state != HAL_BOND_STATE_BONDED &&
- dev->bond_state != HAL_BOND_STATE_NONE)
+ dev->bond_state != HAL_BOND_STATE_NONE)
return;
ba2str(&dev->bdaddr, addr);