Bluetooth: host: always set address via HCI before scanning
The address of the device is also set via HCI interface when passive scanning is used. As a result, LL does not filter out directed advertising packets that are targeted at this device. Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
parent
bb271a6d98
commit
868a3bff0d
1 changed files with 2 additions and 0 deletions
|
@ -3114,6 +3114,8 @@ static int start_le_scan(u8_t scan_type, u16_t interval, u16_t window)
|
|||
}
|
||||
|
||||
set_param.addr_type = BT_ADDR_LE_RANDOM;
|
||||
} else if (set_param.addr_type == BT_ADDR_LE_RANDOM) {
|
||||
set_random_address(&bt_dev.id_addr[0].a);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue