diff options
| author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-07-08 10:50:01 +0300 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-07-13 14:03:45 +0300 |
| commit | fc9ccf6154a0c090e641569a9567a40eb1c721f5 (patch) | |
| tree | 70b9359d3c9256cf354432e174d0f736533c38cf | |
| parent | d8c47f1202c7def9d1d58037678885f376a8f76f (diff) | |
| download | bluez-fc9ccf6154a0c090e641569a9567a40eb1c721f5.tar.gz | |
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.
| -rw-r--r-- | src/gatt-database.c | 5 |
1 files 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; |
