From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Add debug prints in a case connection is failing --- android/adapter.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/android/adapter.c b/android/adapter.c index df56452..bc4492b 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -643,6 +643,18 @@ static void mgmt_device_connected_event(uint16_t index, uint16_t length, HAL_EV_ACL_STATE_CHANGED, sizeof(hal_ev), &hal_ev, -1); } +static void mgmt_connect_failed_event(uint16_t index, uint16_t length, + const void *param, void *user_data) +{ + DBG(""); +} + +static void mgmt_auth_failed_event(uint16_t index, uint16_t length, + const void *param, void *user_data) +{ + DBG(""); +} + static void register_mgmt_handlers(void) { mgmt_register(adapter->mgmt, MGMT_EV_NEW_SETTINGS, adapter->index, @@ -683,6 +695,12 @@ static void register_mgmt_handlers(void) mgmt_register(adapter->mgmt, MGMT_EV_DEVICE_CONNECTED, adapter->index, mgmt_device_connected_event, NULL, NULL); + + mgmt_register(adapter->mgmt, MGMT_EV_CONNECT_FAILED, adapter->index, + mgmt_connect_failed_event, NULL, NULL); + + mgmt_register(adapter->mgmt, MGMT_EV_AUTH_FAILED, adapter->index, + mgmt_auth_failed_event, NULL, NULL); } static void load_link_keys_complete(uint8_t status, uint16_t length, -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html