monitor/att: Fix parsing of notifications
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 25 May 2022 00:51:44 +0000 (17:51 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commite6d8a3fa2bba4a2c9562ac4ac3dfafb258f4054b
tree1fc9f51e6bbcb545083e94d8e8fe0fb17c0cb1f6
parent6f6a80a278b59be98806f736c31ee570d44043c0
monitor/att: Fix parsing of notifications

If there are multiple notifications in the same frame the callback may
alter it when using l2cap_frame_pull helpers, so instead this passes a
cloned frame with just the expected length so callbacks cannot alter
original frame.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/att.c
monitor/l2cap.h