mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-22 17:07:22 +00:00
nimble/ll: Fix regression in network privacy when initiating
We should not connect to peer in network privacy mode only if peer IRK is non-zero. Fix regression introduced in fix for LL/CON/INI/BV-24-C qualification test case.
This commit is contained in:
@@ -3412,7 +3412,8 @@ ble_ll_init_rx_isr_end(uint8_t *rxbuf, uint8_t crcok,
|
||||
} else if (!ble_ll_is_rpa(adv_addr, adv_addr_type)) {
|
||||
/* undirected with ID address, assure privacy if on RL */
|
||||
rl = ble_ll_resolv_list_find(adv_addr, adv_addr_type);
|
||||
if (rl && (rl->rl_priv_mode == BLE_HCI_PRIVACY_NETWORK)) {
|
||||
if (rl && (rl->rl_priv_mode == BLE_HCI_PRIVACY_NETWORK) &&
|
||||
rl->rl_has_peer) {
|
||||
goto init_rx_isr_exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user