Bluetooth: Use unresolvable private address for active scanning
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Feb 2014 04:25:54 +0000 (20:25 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Feb 2014 06:45:58 +0000 (08:45 +0200)
commit94b1fc92cd7cf550460ffd4bcc08c2707564aa49
tree6288fa61c03d3139540e007ccdb2fa6c9d30dbbf
parentac345813c4ac5a0e66261e9812f0fe94729c0eb2
Bluetooth: Use unresolvable private address for active scanning

When running active scanning during LE discovery, do not reveal the own
identity to the peer devices. In case LE privacy has been enabled, then
a resolvable private address is used. If the LE privacy option is off,
then use an unresolvable private address.

The public address or static random address is never used in active
scanning anymore. This ensures that scan request are send using a
random address.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c