From 2e77a0b2f3c68ee87c7f51dc7e9bf0449fbac447 Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Mon, 10 Mar 2014 00:06:37 +0100 Subject: [PATCH] android: Send confirm name request with mgmt_send This patch improves handling stop disvocery in scenarios when there is a big inflow of device found events. In such case, number of confirm name request might block mgmt queses and make stop discovery stack in the queue. Even we cancel previous confirm name request, there is still possibility that new incoming device found events produce confirm name request which will might block stop discovery. --- android/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 041f922b4..acd2dd23d 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1061,7 +1061,7 @@ static unsigned int confirm_device_name(const bdaddr_t *addr, uint8_t addr_type, if (!resolve_name) cp.name_known = 1; - res = mgmt_reply(mgmt_if, MGMT_OP_CONFIRM_NAME, adapter.index, + res = mgmt_send(mgmt_if, MGMT_OP_CONFIRM_NAME, adapter.index, sizeof(cp), &cp, confirm_device_name_cb, NULL, NULL); if (!res) -- 2.47.3