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 2472173..e368b8a 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, -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html