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:
32776f3
)
android: Fix not storing adapter index in index added event
author
Szymon Janc
<szymon.janc@tieto.com>
Fri, 15 Nov 2013 12:16:47 +0000
(13:16 +0100)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 15 Nov 2013 12:44:10 +0000
(14:44 +0200)
If controller was addded after daemon start its index was not stored
resulting in mgmt commands to be always send to MGMT_INDEX_NONE index.
android/bluetooth.c
patch
|
blob
|
history
diff --git
a/android/bluetooth.c
b/android/bluetooth.c
index
39589fa
..
b7c05e7
100644
(file)
--- a/
android/bluetooth.c
+++ b/
android/bluetooth.c
@@
-1356,6
+1356,8
@@
static void mgmt_index_added_event(uint16_t index, uint16_t length,
return;
}
+ adapter.index = index;
+
if (mgmt_send(mgmt_if, MGMT_OP_READ_INFO, index, 0, NULL,
read_info_complete, cb, NULL) == 0) {
cb(-EIO, NULL);