You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2020/12/02 10:26:42 UTC
[mynewt-nimble] branch master updated: nimble/ll: Fix regression in
network privacy when initiating
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 4c2a720 nimble/ll: Fix regression in network privacy when initiating
4c2a720 is described below
commit 4c2a72064dba17f10cd1143b9e505e33a429b9eb
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Dec 1 09:03:31 2020 +0100
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.
---
nimble/controller/src/ble_ll_conn.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index f1fdf43..a3e2807 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -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;
}
}