shared/gatt-client: fix BT_ATT_OP_HANDLE_NFY_MULT parsing
authorArchie Pusaka <apusaka@chromium.org>
Tue, 16 Mar 2021 04:12:37 +0000 (12:12 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
We need to advance the pdu pointer after parsing each block of
notification data.

Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/gatt-client.c

index 5ba591a..6ae7249 100644 (file)
@@ -2436,6 +2436,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);