All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics
@ 2014-04-11 12:40 Jakub Tyszkowski
  2014-04-11 12:40 ` [PATCH 2/2] android/client: Fix parameter completion for gatt Jakub Tyszkowski
  2014-04-11 14:17 ` [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Szymon Janc
  0 siblings, 2 replies; 3+ messages in thread
From: Jakub Tyszkowski @ 2014-04-11 12:40 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

Fix sending included service's characteristics.
---
 android/gatt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index aa2a5fd..13ae340 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1510,8 +1510,7 @@ static void send_client_char_notify(const struct characteristic *ch,
 	}
 
 	ev.conn_id = conn_id;
-	/* TODO need to be handled for included services too */
-	element_id_to_hal_srvc_id(&service->id, 1, &ev.srvc_id);
+	element_id_to_hal_srvc_id(&service->id, service->primary, &ev.srvc_id);
 
 	ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT,
 					HAL_EV_GATT_CLIENT_GET_CHARACTERISTIC,
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] android/client: Fix parameter completion for gatt
  2014-04-11 12:40 [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Jakub Tyszkowski
@ 2014-04-11 12:40 ` Jakub Tyszkowski
  2014-04-11 14:17 ` [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Szymon Janc
  1 sibling, 0 replies; 3+ messages in thread
From: Jakub Tyszkowski @ 2014-04-11 12:40 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

This fixes missing service handle in parameters completion for gatt
server add_descriptor method.
---
 android/client/if-gatt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index da2f299..250472a 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -1736,7 +1736,8 @@ static struct method server_methods[] = {
 			"<server_if> <service_handle> <included_handle>"),
 	GATTS_METHODCH(add_characteristic,
 		"<server_if> <service_handle> <uuid> <properites> <permissions>"),
-	GATTS_METHODCH(add_descriptor, "<server_if> <uuid> <permissions>"),
+	GATTS_METHODCH(add_descriptor,
+			"<server_if> <service_handle> <uuid> <permissions>"),
 	GATTS_METHODCH(start_service,
 				"<server_if> <service_handle> <transport>"),
 	GATTS_METHODCH(stop_service, "<server_if> <service_handle>"),
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics
  2014-04-11 12:40 [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Jakub Tyszkowski
  2014-04-11 12:40 ` [PATCH 2/2] android/client: Fix parameter completion for gatt Jakub Tyszkowski
@ 2014-04-11 14:17 ` Szymon Janc
  1 sibling, 0 replies; 3+ messages in thread
From: Szymon Janc @ 2014-04-11 14:17 UTC (permalink / raw)
  To: Jakub Tyszkowski; +Cc: linux-bluetooth

Hi Jakub,

On Friday 11 of April 2014 14:40:25 Jakub Tyszkowski wrote:
> Fix sending included service's characteristics.
> ---
>  android/gatt.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/android/gatt.c b/android/gatt.c
> index aa2a5fd..13ae340 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -1510,8 +1510,7 @@ static void send_client_char_notify(const struct characteristic *ch,
>  	}
>  
>  	ev.conn_id = conn_id;
> -	/* TODO need to be handled for included services too */
> -	element_id_to_hal_srvc_id(&service->id, 1, &ev.srvc_id);
> +	element_id_to_hal_srvc_id(&service->id, service->primary, &ev.srvc_id);
>  
>  	ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT,
>  					HAL_EV_GATT_CLIENT_GET_CHARACTERISTIC,
> 

Both patches applied, thanks.

-- 
Best regards, 
Szymon Janc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-11 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11 12:40 [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Jakub Tyszkowski
2014-04-11 12:40 ` [PATCH 2/2] android/client: Fix parameter completion for gatt Jakub Tyszkowski
2014-04-11 14:17 ` [PATCH 1/2] android/gatt: Set proper primary flag for sending characteristics Szymon Janc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.