]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit721442efe7c5b25aace885240276e98494e824d6
tree6288fa61c03d3139540e007ccdb2fa6c9d30dbbf
parent12faa49fff0b6a414e53cf2a7dfa2081d13ba88b
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