OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa65351
)
android: Update HAL with device info on incoming connection
author
Lukasz Rymanowski
<lukasz.rymanowski@tieto.com>
Tue, 12 Nov 2013 12:51:39 +0000
(13:51 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 12 Nov 2013 13:05:09 +0000
(15:05 +0200)
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
patch
|
blob
|
history
diff --git
a/android/adapter.c
b/android/adapter.c
index
65b3170
..
02e17a8
100644
(file)
--- 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;