bthost: Fix length calculation for RFCOMM header
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 9 Feb 2022 21:59:17 +0000 (13:59 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit4318db2f3cac2ddb1bc2ac8caa2f37ddaf6f425e
treecddcf3f41f6462ec655073f10a8598a79a780081
parent05f2ba73c7bb9477b60168f270adbff9e234f229
bthost: Fix length calculation for RFCOMM header

This fixes the length calculation for large packets that requires more
than 1 byte.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/bthost.c