android/bluetooth: Log error for any non-success code

Returning non-SUCCESS code in command reply is considered error and
that includes DONE status.
This commit is contained in:
Szymon Janc 2014-01-03 21:32:25 +01:00
parent 86905a8968
commit c31615b82b

View File

@ -2178,7 +2178,7 @@ static void handle_get_adapter_prop_cmd(const void *buf, uint16_t len)
break; 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)", error("Failed to get adapter property (type %u status %u)",
cmd->type, status); cmd->type, status);
@ -2329,7 +2329,7 @@ static void handle_set_adapter_prop_cmd(const void *buf, uint16_t len)
break; 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)", error("Failed to set adapter property (type %u status %u)",
cmd->type, status); cmd->type, status);
@ -2805,7 +2805,7 @@ static void handle_get_remote_device_prop_cmd(const void *buf, uint16_t len)
break; 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)", error("Failed to get device property (type %u status %u)",
cmd->type, status); cmd->type, status);
@ -2873,7 +2873,7 @@ static void handle_set_remote_device_prop_cmd(const void *buf, uint16_t len)
break; 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)", error("Failed to set device property (type %u status %u)",
cmd->type, status); cmd->type, status);