mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ble/bluedroid): Fixed BLE set adv param check
This commit is contained in:
parent
7212e4e1a8
commit
4593ae0741
@ -388,6 +388,12 @@ void BTM_BleUpdateAdvFilterPolicy(tBTM_BLE_AFP adv_policy)
|
|||||||
&p_cb->adv_addr_type);
|
&p_cb->adv_addr_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t null_addr[BD_ADDR_LEN] = {0};
|
||||||
|
if ((p_cb->evt_type == 0x01 || p_cb->evt_type == 0x04) && memcmp(p_addr_ptr, null_addr, BD_ADDR_LEN) == 0) {
|
||||||
|
/* directed advertising */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
btsnd_hcic_ble_write_adv_params ((UINT16)(p_cb->adv_interval_min ? p_cb->adv_interval_min :
|
btsnd_hcic_ble_write_adv_params ((UINT16)(p_cb->adv_interval_min ? p_cb->adv_interval_min :
|
||||||
BTM_BLE_GAP_ADV_SLOW_INT),
|
BTM_BLE_GAP_ADV_SLOW_INT),
|
||||||
(UINT16)(p_cb->adv_interval_max ? p_cb->adv_interval_max :
|
(UINT16)(p_cb->adv_interval_max ? p_cb->adv_interval_max :
|
||||||
|
Loading…
Reference in New Issue
Block a user