btmon: Fix decoding truncated data
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Sat, 11 Mar 2023 23:36:40 +0000 (00:36 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commitb382be0e01ca4c21ed95022c72c60c7b3ebe1c63
treea840653fe0527ac111237a942c52c5bbac4ddac0
parenteecad9eb8522ff9175974791f62497f9e0ac894f
btmon: Fix decoding truncated data

Some platforms use different filtering and for this purpose,
some of the ACL/SCO/ISO/SDP data is truncated.

In such a case, included length is smaller than the original size.
Without this fix, btmon stops working after first truncated packet.
src/shared/btsnoop.c
tools/btsnoop.c