From 19f49964b57d4d7b636395921e934dcd79684ea0 Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Tue, 12 Nov 2013 13:51:39 +0100 Subject: [PATCH] android: Update HAL with device info on incoming connection Make sure Android have information about connecting remote device. This is needed for example to show device name on incoming bonding request. --- android/adapter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/android/adapter.c b/android/adapter.c index 65b31705b..02e17a869 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -825,9 +825,8 @@ static void mgmt_device_connected_event(uint16_t index, uint16_t length, return; } - /* TODO: Update device */ - - /* TODO: Check Set bonding state */ + update_found_device(&ev->addr.bdaddr, ev->addr.type, 0, false, + &ev->eir[0], btohs(ev->eir_len)); hal_ev.status = HAL_STATUS_SUCCESS; hal_ev.state = HAL_ACL_STATE_CONNECTED; -- 2.11.0