From fc9ccf6154a0c090e641569a9567a40eb1c721f5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 8 Jul 2016 10:50:01 +0300 Subject: [PATCH] core/gatt: Print address type The code actually listen for ATT connection in both BR/EDR and LE so it shouldn't assume all the connections are LE. --- src/gatt-database.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gatt-database.c b/src/gatt-database.c index 09fa1a90a..bf1925b7f 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -468,8 +468,6 @@ static void connect_cb(GIOChannel *io, GError *gerr, gpointer user_data) uint8_t dst_type; bdaddr_t src, dst; - DBG("New incoming LE ATT connection"); - if (gerr) { error("%s", gerr->message); return; @@ -485,6 +483,9 @@ static void connect_cb(GIOChannel *io, GError *gerr, gpointer user_data) return; } + DBG("New incoming %s ATT connection", dst_type == BDADDR_BREDR ? + "BR/EDR" : "LE"); + adapter = adapter_find(&src); if (!adapter) return; -- 2.47.3