We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095a0dd commit c3af6dbCopy full SHA for c3af6db
components/bt/host/bluedroid/stack/btm/btm_ble_gap.c
@@ -388,6 +388,12 @@ void BTM_BleUpdateAdvFilterPolicy(tBTM_BLE_AFP adv_policy)
388
&p_cb->adv_addr_type);
389
}
390
391
+ uint8_t null_addr[BD_ADDR_LEN] = {0};
392
+ if ((p_cb->evt_type == 0x01 || p_cb->evt_type == 0x04) && memcmp(p_addr_ptr, null_addr, BD_ADDR_LEN) == 0) {
393
+ /* directed advertising */
394
+ return;
395
+ }
396
+
397
btsnd_hcic_ble_write_adv_params ((UINT16)(p_cb->adv_interval_min ? p_cb->adv_interval_min :
398
BTM_BLE_GAP_ADV_SLOW_INT),
399
(UINT16)(p_cb->adv_interval_max ? p_cb->adv_interval_max :
0 commit comments