mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Merge branch 'feat/ble-smp-multi-adv-static-random-address_v6.1' into 'release/v6.1'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (6.1) See merge request espressif/esp-idf!49790
This commit is contained in:
@@ -624,6 +624,14 @@ typedef struct {
|
||||
BOOLEAN directed;
|
||||
BOOLEAN scannable;
|
||||
BOOLEAN connetable;
|
||||
/* Per-set on-air address policy, captured at BTM_BleSetExtendedAdvParams()
|
||||
* time. For now we only consider CONTROLLER_RPA_LIST_ENABLE == TRUE;
|
||||
* CONTROLLER_RPA_LIST_ENABLE == FALSE is out of scope temporarily. The global
|
||||
* addr_mgnt_cb is a single slot shared across all sets, so in multi-ADV
|
||||
* it does not necessarily reflect the policy used for a given connection. */
|
||||
tBLE_ADDR_TYPE own_addr_type;
|
||||
BOOLEAN rand_addr_set;
|
||||
BD_ADDR rand_addr;
|
||||
} tBTM_BLE_EXTENDED_INST;
|
||||
|
||||
typedef struct {
|
||||
@@ -631,6 +639,10 @@ typedef struct {
|
||||
UINT8 scan_duplicate;
|
||||
} tBTM_BLE_EXTENDED_CB;
|
||||
|
||||
/* Defined in btm_ble_5_gap.c. Exposed for per-set address lookup from
|
||||
* SMP / BTM at LE connection complete. */
|
||||
extern tBTM_BLE_EXTENDED_CB extend_adv_cb;
|
||||
|
||||
#define BTM_BLE_GAP_SET_EXT_ADV_PROP_CONNECTABLE (1 << 0)
|
||||
#define BTM_BLE_GAP_SET_EXT_ADV_PROP_SCANNABLE (1 << 1)
|
||||
#define BTM_BLE_GAP_SET_EXT_ADV_PROP_DIRECTED (1 << 2)
|
||||
@@ -3052,6 +3064,20 @@ tBTM_STATUS BTM_BleExtAdvSetRemove(UINT8 instance);
|
||||
|
||||
tBTM_STATUS BTM_BleExtAdvSetClear(void);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_BleGetExtAdvInstByConHandle
|
||||
**
|
||||
** Description Map an LE connection handle to the ext-adv instance
|
||||
** that produced it.
|
||||
**
|
||||
** Returns Instance index on success, 0xFF if no match (e.g.
|
||||
** initiator role or legacy advertising).
|
||||
**
|
||||
*******************************************************************************/
|
||||
UINT8 BTM_BleGetExtAdvInstByConHandle(UINT16 con_handle);
|
||||
|
||||
|
||||
tBTM_STATUS BTM_BlePeriodicAdvSetParams(UINT8 instance, tBTM_BLE_Periodic_Adv_Params *params);
|
||||
|
||||
tBTM_STATUS BTM_BlePeriodicAdvCfgDataRaw(UINT8 instance, UINT16 len, UINT8 *data, BOOLEAN only_update_did);
|
||||
|
||||
Reference in New Issue
Block a user