All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Update gatt listen mode.
@ 2011-02-07 20:11 Andre Dieb Martins
  2011-02-08 23:09 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Dieb Martins @ 2011-02-07 20:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andre Dieb Martins

Update gatt's listen-mode flag whenever connect_cb() is called again.
---
 attrib/client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/attrib/client.c b/attrib/client.c
index 44638d3..ec5fcf2 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -356,6 +356,7 @@ static int l2cap_connect(struct gatt_service *gatt, GError **gerr,
 
 	if (gatt->attrib != NULL) {
 		gatt->attrib = g_attrib_ref(gatt->attrib);
+		gatt->listen = listen;
 		return 0;
 	}
 
-- 
1.7.1


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

* Re: [PATCH] Update gatt listen mode.
  2011-02-07 20:11 [PATCH] Update gatt listen mode Andre Dieb Martins
@ 2011-02-08 23:09 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-02-08 23:09 UTC (permalink / raw)
  To: Andre Dieb Martins; +Cc: linux-bluetooth

Hi André,

On Mon, Feb 07, 2011, Andre Dieb Martins wrote:
> Update gatt's listen-mode flag whenever connect_cb() is called again.
> ---
>  attrib/client.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/attrib/client.c b/attrib/client.c
> index 44638d3..ec5fcf2 100644
> --- a/attrib/client.c
> +++ b/attrib/client.c
> @@ -356,6 +356,7 @@ static int l2cap_connect(struct gatt_service *gatt, GError **gerr,
>  
>  	if (gatt->attrib != NULL) {
>  		gatt->attrib = g_attrib_ref(gatt->attrib);
> +		gatt->listen = listen;
>  		return 0;
>  	}

Thanks. The patch has been pushed upstream.

Johan

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

end of thread, other threads:[~2011-02-08 23:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 20:11 [PATCH] Update gatt listen mode Andre Dieb Martins
2011-02-08 23:09 ` Johan Hedberg

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.