From 509b120a1ae12530a37f2a29a8266d6ae748c9a7 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 24 Jan 2014 12:27:38 +0100 Subject: [PATCH] android/bluetooth: Check not paired status in unpair_device_complete This is needed to make sure framework is updated with proper bond state of device. --- android/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 0f6e14f2d..e596d94e6 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -2536,7 +2536,7 @@ static void unpair_device_complete(uint8_t status, uint16_t length, DBG("status %u", status); - if (status != MGMT_STATUS_SUCCESS) + if (status != MGMT_STATUS_SUCCESS && status != MGMT_STATUS_NOT_PAIRED) return; set_device_bond_state(&rp->addr.bdaddr, HAL_STATUS_SUCCESS, -- 2.47.3