This is an automated email from the ASF dual-hosted git repository. naraj pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit bed211f69c383c01a38a505155f9bac4251fccc7 Author: MichaĆ Narajowski <michal.narajow...@codecoup.pl> AuthorDate: Wed Jan 9 16:54:39 2019 +0100 host: Send Identity Resolved Event only when RPA was used --- nimble/host/src/ble_sm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/src/ble_sm.c b/nimble/host/src/ble_sm.c index 127c1ae..d0d464d 100644 --- a/nimble/host/src/ble_sm.c +++ b/nimble/host/src/ble_sm.c @@ -543,9 +543,9 @@ ble_sm_persist_keys(struct ble_sm_proc *proc) conn->bhc_peer_addr.type = BLE_ADDR_RANDOM_ID; break; } - } - identity_ev = 1; + identity_ev = 1; + } } else { peer_addr = conn->bhc_peer_addr; peer_addr.type = ble_hs_misc_addr_type_to_id(conn->bhc_peer_addr.type);