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:
f46bba7
)
core: Fix canceling pairing through mgmt
author
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 22 Jan 2013 12:57:18 +0000
(14:57 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 22 Jan 2013 12:57:18 +0000
(14:57 +0200)
The mgmt_reply() function should be used instead of mgmt_send() since
otherwise the request obeys the usual command queuing which wont work
due to the pending mgmt_pair_device command.
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
75ce4e8
..
5fd5062
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-4723,7
+4723,7
@@
int adapter_cancel_bonding(struct btd_adapter *adapter, const bdaddr_t *bdaddr,
bacpy(&cp.bdaddr, bdaddr);
cp.type = addr_type;
- if (mgmt_
send
(adapter->mgmt, MGMT_OP_CANCEL_PAIR_DEVICE,
+ if (mgmt_
reply
(adapter->mgmt, MGMT_OP_CANCEL_PAIR_DEVICE,
adapter->dev_id, sizeof(cp), &cp,
NULL, NULL, NULL) > 0)
return 0;