]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add management command for setting static address
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Oct 2013 11:41:30 +0000 (04:41 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Oct 2013 11:50:58 +0000 (14:50 +0300)
commitc0ea95fa9f04bc627065c298a54f8e62883bf0fe
tree6ce6e6a461756a0a5a5e7371b77a60f1977b7a10
parent300055daf59390c66ef64185bde28c03b59c2446
Bluetooth: Add management command for setting static address

On dual-mode BR/EDR/LE and LE only controllers it is possible
to configure a random address. There are two types or random
addresses, one is static and the other private. Since the
random private addresses require special privacy feature to
be supported, the configuration of these two are kept separate.

This command allows for setting the static random address. It is
only supported on controllers with LE support. The static random
address is suppose to be valid for the lifetime of the controller
or at least until the next power cycle. To ensure such behavior,
setting of the address is limited to when the controller is
powered off.

The special BDADDR_ANY address (00:00:00:00:00:00) can be used to
disable the static address. This is also the default value.

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