Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] android/gatt: Fix missing android address to bdadr conversion
@ 2014-05-08  8:18 Grzegorz Kolodziejczyk
  2014-05-08  8:36 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-05-08  8:18 UTC (permalink / raw)
  To: linux-bluetooth

This fix missing android to bd address conversion before handle
connection.
---
 android/gatt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/gatt.c b/android/gatt.c
index 9b96dbf..9e466cf 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -3102,6 +3102,8 @@ static void handle_server_connect(const void *buf, uint16_t len)
 
 	DBG("");
 
+	android2bdaddr(&cmd->bdaddr, &addr);
+
 	status = handle_connect(cmd->server_if, &addr);
 
 	ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT, HAL_OP_GATT_SERVER_CONNECT,
-- 
1.9.2


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

* Re: [PATCH] android/gatt: Fix missing android address to bdadr conversion
  2014-05-08  8:18 [PATCH] android/gatt: Fix missing android address to bdadr conversion Grzegorz Kolodziejczyk
@ 2014-05-08  8:36 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-05-08  8:36 UTC (permalink / raw)
  To: Grzegorz Kolodziejczyk; +Cc: linux-bluetooth

Hi Grzegorz,

On Thursday 08 of May 2014 10:18:57 Grzegorz Kolodziejczyk wrote:
> This fix missing android to bd address conversion before handle
> connection.
> ---
>  android/gatt.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/android/gatt.c b/android/gatt.c
> index 9b96dbf..9e466cf 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -3102,6 +3102,8 @@ static void handle_server_connect(const void *buf, uint16_t len)
>  
>  	DBG("");
>  
> +	android2bdaddr(&cmd->bdaddr, &addr);
> +
>  	status = handle_connect(cmd->server_if, &addr);
>  
>  	ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT, HAL_OP_GATT_SERVER_CONNECT,
> 

Patch applied, thanks.

-- 
Best regards, 
Szymon Janc

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

end of thread, other threads:[~2014-05-08  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08  8:18 [PATCH] android/gatt: Fix missing android address to bdadr conversion Grzegorz Kolodziejczyk
2014-05-08  8:36 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox