mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Merge branch 'bugfix/fix_ble_set_adv_param_check' into 'master'
Bugfix/fix ble set adv param check Closes BLERP-739 See merge request espressif/esp-idf!30745
This commit is contained in:
commit
27f06bef11
@ -388,6 +388,12 @@ void BTM_BleUpdateAdvFilterPolicy(tBTM_BLE_AFP adv_policy)
|
||||
&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 :
|
||||
BTM_BLE_GAP_ADV_SLOW_INT),
|
||||
(UINT16)(p_cb->adv_interval_max ? p_cb->adv_interval_max :
|
||||
|
Loading…
Reference in New Issue
Block a user