From 7eabf1cdf2fec924e50e17f26e3b23baafcf0a47 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 28 Apr 2021 11:55:00 +0200 Subject: [PATCH] Bluetooth: host: Add adv parameters def for connectable ext adv This is the same as for legacy, but with ext adv flag. Signed-off-by: Andrzej Kaczmarek --- include/bluetooth/bluetooth.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index c5b9389ea38..13e363ca53c 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -709,6 +709,14 @@ struct bt_le_per_adv_param { BT_GAP_ADV_FAST_INT_MAX_2, \ NULL) +/** Connectable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME */ +#define BT_LE_EXT_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \ + BT_LE_ADV_OPT_CONNECTABLE | \ + BT_LE_ADV_OPT_USE_NAME, \ + BT_GAP_ADV_FAST_INT_MIN_2, \ + BT_GAP_ADV_FAST_INT_MAX_2, \ + NULL) + /** Non-connectable extended advertising with private address */ #define BT_LE_EXT_ADV_NCONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, \ BT_GAP_ADV_FAST_INT_MIN_2, \