From 5eaf3a88f34de10c5756375cb0efaa8ff81eea74 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 31 Oct 2013 13:52:38 +0200 Subject: [PATCH] android/daemon: Fix error setting property Do not return error setting property which is already set. This fixes bug with set_scan_mode which might return HAL_STATUS_DONE. --- android/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/adapter.c b/android/adapter.c index a3f9aa62a..7baf3567c 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -943,7 +943,7 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, break; case HAL_OP_SET_ADAPTER_PROP: status = set_property(buf, len); - if (status != HAL_STATUS_SUCCESS) + if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE) goto error; break; -- 2.47.3