From c31615b82b28c6f107b5a5d5de45d144fc4e6aa7 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 3 Jan 2014 21:32:25 +0100 Subject: [PATCH] android/bluetooth: Log error for any non-success code Returning non-SUCCESS code in command reply is considered error and that includes DONE status. --- android/bluetooth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 2a75a22fd..cacacb63d 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -2178,7 +2178,7 @@ static void handle_get_adapter_prop_cmd(const void *buf, uint16_t len) break; } - if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE) + if (status != HAL_STATUS_SUCCESS) error("Failed to get adapter property (type %u status %u)", cmd->type, status); @@ -2329,7 +2329,7 @@ static void handle_set_adapter_prop_cmd(const void *buf, uint16_t len) break; } - if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE) + if (status != HAL_STATUS_SUCCESS) error("Failed to set adapter property (type %u status %u)", cmd->type, status); @@ -2805,7 +2805,7 @@ static void handle_get_remote_device_prop_cmd(const void *buf, uint16_t len) break; } - if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE) + if (status != HAL_STATUS_SUCCESS) error("Failed to get device property (type %u status %u)", cmd->type, status); @@ -2873,7 +2873,7 @@ static void handle_set_remote_device_prop_cmd(const void *buf, uint16_t len) break; } - if (status != HAL_STATUS_SUCCESS && status != HAL_STATUS_DONE) + if (status != HAL_STATUS_SUCCESS) error("Failed to set device property (type %u status %u)", cmd->type, status); -- 2.47.3