Re: [PATCH 3/3] android/gatt: Send app uuid also for failure response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jakub,

On Monday 28 of April 2014 15:17:50 Jakub Tyszkowski wrote:
> Framework should know which request failed.
> ---
>  android/gatt.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/android/gatt.c b/android/gatt.c
> index 7c59e12..a7b8659 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -3105,7 +3105,6 @@ static void handle_server_register(const void *buf, uint16_t len)
>  
>  	ev.status = GATT_SUCCESS;
>  	ev.server_if = server->id;
> -	memcpy(ev.uuid, server->uuid, sizeof(server->uuid));
>  
>  	status = HAL_STATUS_SUCCESS;
>  
> @@ -3113,6 +3112,8 @@ failed:
>  	if (status != HAL_STATUS_SUCCESS)
>  		ev.status = GATT_FAILURE;
>  
> +	memcpy(ev.uuid, cmd->uuid, sizeof(ev.uuid));
> +
>  	ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT,
>  				HAL_EV_GATT_SERVER_REGISTER, sizeof(ev), &ev);
>  
This patch is now pushed, thanks.

-- 
Best regards, 
Szymon Janc
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux