kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/btdm_update_private_address_v3.1' into 'release/v3.1'
component/bt: Update BLE private address after it's private address interval (backport 3.1) See merge request idf/esp-idf!3170pull/2666/head
commit
45e29a817c
|
@ -65,6 +65,23 @@ static void btm_gen_resolve_paddr_cmpl(tSMP_ENC *p)
|
||||||
p_cb->set_local_privacy_cback = NULL;
|
p_cb->set_local_privacy_cback = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (btm_cb.ble_ctr_cb.inq_var.adv_mode == BTM_BLE_ADV_ENABLE){
|
||||||
|
BTM_TRACE_DEBUG("Advertise with new resolvable private address, now.");
|
||||||
|
/**
|
||||||
|
* Restart advertising, using new resolvable private address
|
||||||
|
*/
|
||||||
|
btm_ble_stop_adv();
|
||||||
|
btm_ble_start_adv();
|
||||||
|
}
|
||||||
|
if (btm_cb.ble_ctr_cb.inq_var.state == BTM_BLE_SCANNING){
|
||||||
|
BTM_TRACE_DEBUG("Scan with new resolvable private address, now.");
|
||||||
|
/**
|
||||||
|
* Restart scaning, using new resolvable private address
|
||||||
|
*/
|
||||||
|
btm_ble_stop_scan();
|
||||||
|
btm_ble_start_scan();
|
||||||
|
}
|
||||||
|
|
||||||
/* start a periodical timer to refresh random addr */
|
/* start a periodical timer to refresh random addr */
|
||||||
btu_stop_timer_oneshot(&p_cb->raddr_timer_ent);
|
btu_stop_timer_oneshot(&p_cb->raddr_timer_ent);
|
||||||
#if (BTM_BLE_CONFORMANCE_TESTING == TRUE)
|
#if (BTM_BLE_CONFORMANCE_TESTING == TRUE)
|
||||||
|
|
Ładowanie…
Reference in New Issue