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 <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-02-02 01:05:25 +01:00 committed by Johan Hedberg
commit abd03aa3ad

View file

@ -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));
}