shared/ad: Fix bt_ad_has_data not matching when only type is passed
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 5 Apr 2023 22:53:12 +0000 (15:53 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
commitbed6b2931abafd9e51b43d962613e7cade71bb6a
treed09bfe3e1a082c2d0af2e94a1f6cd9ae3144b9c4
parent2142499f7b9e5716c72c33a287373bd11fbde336
shared/ad: Fix bt_ad_has_data not matching when only type is passed

bt_ad_has_data attempts to match the data portion even when not set
which is useful the user is only interested in actually mataching the
type alone.
src/shared/ad.c