From 7cb75f43d8f68f55c22ecdf6d4f6998c0e81110f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 1 Oct 2012 09:49:23 +0200 Subject: [PATCH] mgmt: Fix error code passed to bonding_complete in disconnect_complete bonding_complete expects mgmt status code not hci error code. --- src/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgmt.c b/src/mgmt.c index 2472173f9..e368b8af6 100644 --- a/src/mgmt.c +++ b/src/mgmt.c @@ -1166,7 +1166,7 @@ static void disconnect_complete(int sk, uint16_t index, uint8_t status, btd_event_disconn_complete(&info->bdaddr, &rp->addr.bdaddr); - bonding_complete(info, &rp->addr.bdaddr, HCI_CONNECTION_TERMINATED); + bonding_complete(info, &rp->addr.bdaddr, MGMT_STATUS_DISCONNECTED); } static void pair_device_complete(int sk, uint16_t index, uint8_t status, -- 2.47.3