2015-02-03 13:33:15

by Jakub Tyszkowski

[permalink] [raw]
Subject: [PATCH] android/tester: Fix ccc descriptor handle

Some service handle count was recently changed.
---
android/tester-gatt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/tester-gatt.c b/android/tester-gatt.c
index 23c6609..15a54fa 100644
--- a/android/tester-gatt.c
+++ b/android/tester-gatt.c
@@ -1084,7 +1084,7 @@ static struct iovec send_notification_1[] = {
static struct iovec att_read_req_op_v = raw_pdu(L2CAP_ATT_READ_REQ);
static struct iovec att_write_req_op_v = raw_pdu(L2CAP_ATT_WRITE_REQ);

-static struct iovec svc_change_ccc_handle_v = raw_pdu(0x1a, 0x00);
+static struct iovec svc_change_ccc_handle_v = raw_pdu(0x1c, 0x00);
static struct iovec svc_change_ccc_value_v = raw_pdu(0x00, 0x01);

static void gatt_client_register_action(void)
--
1.9.1



2015-02-05 15:10:18

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/tester: Fix ccc descriptor handle

Hi Jakub,

On Tuesday 03 of February 2015 14:33:15 Jakub Tyszkowski wrote:
> Some service handle count was recently changed.
> ---
> android/tester-gatt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/android/tester-gatt.c b/android/tester-gatt.c
> index 23c6609..15a54fa 100644
> --- a/android/tester-gatt.c
> +++ b/android/tester-gatt.c
> @@ -1084,7 +1084,7 @@ static struct iovec send_notification_1[] = {
> static struct iovec att_read_req_op_v = raw_pdu(L2CAP_ATT_READ_REQ);
> static struct iovec att_write_req_op_v = raw_pdu(L2CAP_ATT_WRITE_REQ);
>
> -static struct iovec svc_change_ccc_handle_v = raw_pdu(0x1a, 0x00);
> +static struct iovec svc_change_ccc_handle_v = raw_pdu(0x1c, 0x00);
> static struct iovec svc_change_ccc_value_v = raw_pdu(0x00, 0x01);
>
> static void gatt_client_register_action(void)

Patch applied, thanks.

--
Best regards,
Szymon Janc