summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Winkler <danielwinkler@google.com>2021-03-16 15:49:56 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-03-22 13:16:50 -0700
commitc0560248754912d70641a6181d07a22f8816ebaa (patch)
tree4ce774f26b7b273bb1722098dcfcc812bcf27151 /lib
parent3d9ff9d52edf0b2ad4f7c878b6197dc369240d04 (diff)
downloadbluez-c0560248754912d70641a6181d07a22f8816ebaa.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index c0021abd8..81e54c48d 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -509,6 +509,7 @@ struct mgmt_rp_add_advertising {
#define MGMT_ADV_PARAM_TIMEOUT (1 << 13)
#define MGMT_ADV_PARAM_INTERVALS (1 << 14)
#define MGMT_ADV_PARAM_TX_POWER (1 << 15)
+#define MGMT_ADV_PARAM_SCAN_RSP (1 << 16)
#define MGMT_OP_REMOVE_ADVERTISING 0x003F
struct mgmt_cp_remove_advertising {