advertising: Create and use scannable adv param flag
authorDaniel Winkler <danielwinkler@google.com>
Tue, 16 Mar 2021 22:49:56 +0000 (15:49 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit410959a3ceeb2488405b896a7c9ff3e9537a2229
treea29eb7594535ed353b32dd376a9e22f30db33afa
parent27abcfc8682e01dbabe37dbe04c497111c530d1b
advertising: Create and use scannable adv param flag

In order for the advertising parameters hci request to indicate that an
advertising set uses a scannable PDU, we pass a scannable flag along
with the initial parameters MGMT request. This flag is populated based
on the existence of any scan response data requested by the client.

Without this patch, a broadcast advertisement with a scan response will
either be rejected by the controller, or will ignore the requested scan
response. The patch is tested by performing the above and confirming
that the scan response is retrievable from a peer as expected.

Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h
src/advertising.c
src/shared/ad.c
src/shared/ad.h