2021-03-16 08:03:53

by Archie Pusaka

[permalink] [raw]
Subject: [Bluez PATCH] shared/gatt-client: fix BT_ATT_OP_HANDLE_NFY_MULT parsing

From: Archie Pusaka <[email protected]>

We need to advance the pdu pointer after parsing each block of
notification data.

Reviewed-by: Sonny Sasaka <[email protected]>
---

src/shared/gatt-client.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 8becf1c6cd..4e10f244d8 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -2179,6 +2179,7 @@ static void notify_cb(struct bt_att_chan *chan, uint8_t opcode,
&data);

length -= data.len;
+ pdu += data.len;
}
} else {
data.handle = get_le16(pdu);
--
2.31.0.rc2.261.g7f71774620-goog


2021-03-16 08:05:53

by bluez.test.bot

[permalink] [raw]
Subject: RE: [Bluez] shared/gatt-client: fix BT_ATT_OP_HANDLE_NFY_MULT parsing

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=448757

---Test result---

##############################
Test: CheckPatch - PASS

##############################
Test: CheckGitLint - PASS

##############################
Test: CheckBuild - PASS

##############################
Test: MakeCheck - PASS



---
Regards,
Linux Bluetooth

2021-03-16 21:20:25

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [Bluez] shared/gatt-client: fix BT_ATT_OP_HANDLE_NFY_MULT parsing

Hi Archie,

On Tue, Mar 16, 2021 at 1:05 AM <[email protected]> wrote:
>
> This is automated email and please do not reply to this email!
>
> Dear submitter,
>
> Thank you for submitting the patches to the linux bluetooth mailing list.
> This is a CI test results with your patch series:
> PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=448757
>
> ---Test result---
>
> ##############################
> Test: CheckPatch - PASS
>
> ##############################
> Test: CheckGitLint - PASS
>
> ##############################
> Test: CheckBuild - PASS
>
> ##############################
> Test: MakeCheck - PASS
>
>
>
> ---
> Regards,
> Linux Bluetooth

Applied, thanks.

--
Luiz Augusto von Dentz