Bluetooth: Track the current configured random address
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 20 Feb 2014 03:52:13 +0000 (19:52 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 20 Feb 2014 06:28:04 +0000 (08:28 +0200)
commit7a4cd51dec96b42d899ed7b2207c9ef810534451
tree53934edd8af19042e45321e4a78c260cfab063a7
parentb32bba6ced5696593a6bae5fdc69dc79c0a97ef5
Bluetooth: Track the current configured random address

For Bluetooth controllers with LE support, track the value of the
currently configured random address. It is important to know what
the current random address is to avoid unneeded attempts to set
a new address. This will become important when introducing the
LE privacy support in the future.

In addition expose the current configured random address via
debugfs for debugging purposes.

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_core.c
net/bluetooth/hci_event.c