diff options
author | Andre Eisenbach <eisenbach@google.com> | 2014-12-05 09:40:20 -0800 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-05-11 17:57:11 -0700 |
commit | 89f5e411d9ef31436741288a2267e46dd744e273 (patch) | |
tree | f701404c9c1db42b66b2c4f1b57e402994a7b899 /bta/gatt/bta_gatts_act.c | |
parent | a778a64c053acdb99b7a14b5837b4f12d83009a1 (diff) | |
download | android_system_bt-89f5e411d9ef31436741288a2267e46dd744e273.tar.gz android_system_bt-89f5e411d9ef31436741288a2267e46dd744e273.tar.bz2 android_system_bt-89f5e411d9ef31436741288a2267e46dd744e273.zip |
Bluetooth native dumpsys logging support (2/5)
Includes support for BTSnoop logging in memory.
Bug: 18508263
Change-Id: I175da528cbcdc00d40622647d518a74210cfe6fd
Diffstat (limited to 'bta/gatt/bta_gatts_act.c')
-rw-r--r-- | bta/gatt/bta_gatts_act.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bta/gatt/bta_gatts_act.c b/bta/gatt/bta_gatts_act.c index bdd7f2919..faabde356 100644 --- a/bta/gatt/bta_gatts_act.c +++ b/bta/gatt/bta_gatts_act.c @@ -34,6 +34,7 @@ #include "bta_gatts_int.h" #include "bta_gatts_co.h" #include "btm_ble_api.h" +#include "btif/include/btif_debug_conn.h" #include <string.h> static void bta_gatts_nv_save_cback(BOOLEAN is_saved, tGATTS_HNDL_RANGE *p_hndl_range); @@ -923,6 +924,13 @@ static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, APPL_TRACE_DEBUG("bta_gatts_conn_cback bda :%02x-%02x-%02x-%02x-%02x-%02x ", bda[0], bda[1], bda[2], bda[3], bda[4], bda[5]); + bt_bdaddr_t bdaddr; + bdcpy(bdaddr.address, bda); + if (connected) + btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); + else + btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason); + p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); if (p_reg && p_reg->p_cback) |