mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-12 07:33:17 +00:00
fix(ble/bluedroid): Fixed BLE_FEAT_CREATE_SYNC_ENH define error in bluedroid host
(cherry picked from commit cf6135c990
)
Co-authored-by: zhiweijian <zhiweijian@espressif.com>
This commit is contained in:
@@ -830,10 +830,10 @@ tBTM_STATUS BTM_BlePeriodicAdvCreateSync(tBTM_BLE_Periodic_Sync_Params *params)
|
||||
|
||||
if ((params->sync_timeout < 0x0a || params->sync_timeout > 0x4000)
|
||||
|| (params->filter_policy > 0x01)
|
||||
#if (CONFIG_BT_BLE_FEAT_CREATE_SYNC_ENH)
|
||||
#if (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
|| (params->reports_disabled > 0x01)
|
||||
|| (params->filter_duplicates > 0x01)
|
||||
#endif
|
||||
#endif // (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
/*If the Periodic Advertiser List is not used,
|
||||
the Advertising_SID, Advertiser Address_Type, and Advertiser Address
|
||||
parameters specify the periodic advertising device to listen to; otherwise they
|
||||
@@ -850,14 +850,14 @@ tBTM_STATUS BTM_BlePeriodicAdvCreateSync(tBTM_BLE_Periodic_Sync_Params *params)
|
||||
SET_BIT(option, 0);
|
||||
}
|
||||
|
||||
#if (CONFIG_BT_BLE_FEAT_CREATE_SYNC_ENH)
|
||||
#if (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
if (params->reports_disabled) {
|
||||
SET_BIT(option, 1);
|
||||
}
|
||||
if (params->filter_duplicates) {
|
||||
SET_BIT(option, 2);
|
||||
}
|
||||
#endif
|
||||
#endif // (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
|
||||
if (!btsnd_hcic_ble_periodic_adv_create_sync(option, params->sid, params->addr_type,
|
||||
params->addr, params->sync_timeout, 0)) {
|
||||
|
@@ -813,10 +813,10 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
UINT8 filter_policy;
|
||||
#if (CONFIG_BT_BLE_FEAT_CREATE_SYNC_ENH)
|
||||
#if (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
UINT8 reports_disabled;
|
||||
UINT8 filter_duplicates;
|
||||
#endif
|
||||
#endif // (BLE_FEAT_CREATE_SYNC_ENH == TRUE)
|
||||
UINT8 sid;
|
||||
tBLE_ADDR_TYPE addr_type;
|
||||
BD_ADDR addr;
|
||||
|
Reference in New Issue
Block a user