From bd89cc3f4dd92227e31420645a5043adfb092444 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Mon, 5 Aug 2019 16:37:02 +0200 Subject: [PATCH] Bluetooth: Controller: Fix privacy advertiser connect peer address type Fix an issue with enhanced connection complete event raised by the advertiser role. The advertiser reported that it has resolved the the identity address of the peer, even when the peer is connecting using it's identity address. The host will not have the correct on-air address type i.e public. Signed-off-by: Joakim Andersson --- subsys/bluetooth/controller/ll_sw/ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index 7a2ab24e12ca3a..76f43f41588366 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -1090,7 +1090,7 @@ static inline u32_t isr_rx_adv(u8_t devmatch_ok, u8_t devmatch_id, radio_le_conn_cmplt->own_addr_type = pdu_adv->rx_addr; memcpy(&radio_le_conn_cmplt->own_addr[0], &pdu_adv->connect_ind.adv_addr[0], BDADDR_SIZE); - if (rl_idx != FILTER_IDX_NONE) { + if (irkmatch_ok && rl_idx != FILTER_IDX_NONE) { /* TODO: store rl_idx instead if safe */ /* Store identity address */ ll_rl_id_addr_get(rl_idx,