From cdc215e1b48599c1a96acae195dd5980453c9304 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 22 Jan 2013 14:57:18 +0200 Subject: [PATCH] core: Fix canceling pairing through mgmt 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index 75ce4e8e1..5fd50627f 100644 --- 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; -- 2.47.3