Diff between ce2bcb20db94036f5ffdf4c41dea8a449e3eb5cf and b004730cbc8fa5a3e739e788a95ce80a9880c85b

Changed Files

File Additions Deletions Status
android/bluetooth.c +4 -0 modified

Full Patch

diff --git a/android/bluetooth.c b/android/bluetooth.c
index bc09d67..fdf7b91 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -2069,12 +2069,16 @@ static void mgmt_device_connected_event(uint16_t index, uint16_t length,
 	const struct mgmt_ev_device_connected *ev = param;
 	struct hal_ev_acl_state_changed hal_ev;
 	struct device *dev;
+	char addr[18];
 
 	if (length < sizeof(*ev)) {
 		error("Too short device connected event (%u bytes)", length);
 		return;
 	}
 
+	ba2str(&ev->addr.bdaddr, addr);
+	DBG("%s type %u", addr, ev->addr.type);
+
 	update_found_device(&ev->addr.bdaddr, ev->addr.type, 0, false, false,
 					&ev->eir[0], le16_to_cpu(ev->eir_len));