From abd03aa3ada13ddf6677f021d02568073592d76d Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Sun, 2 Feb 2020 01:05:25 +0100 Subject: [PATCH] Bluetooth: host: Fix scanner using wrong identity to resolve peer Fix the scanner using the advertiser identity instead of the scanners identity, scanner always use BT_ID_DEFAULT. Signed-off-by: Joakim Andersson --- subsys/bluetooth/host/hci_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index ace0460f9a7..393d423ae1a 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -3837,7 +3837,7 @@ static void le_adv_report(struct net_buf *buf) id_addr.type -= BT_ADDR_LE_PUBLIC_ID; } else { bt_addr_le_copy(&id_addr, - bt_lookup_id_addr(bt_dev.adv_id, + bt_lookup_id_addr(BT_ID_DEFAULT, &info->addr)); }