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:
Szymon Janc
2020-12-02 11:26:32 +01:00
parent f2f9baff5f
commit 4c2a72064d
+2 -1
View File
@@ -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;
}
}