Bluetooth: Add support for changing the public device address
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Jul 2014 10:11:15 +0000 (12:11 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Jul 2014 10:42:20 +0000 (13:42 +0300)
commit9713c17b086c1ebfe34ea4d34147a778276e2dab
tree2e5dcc1d74effed93b919b8b3c617e937d7292e5
parentd603b76b0c18c5adf4a3164dff50bb15948cd7bd
Bluetooth: Add support for changing the public device address

This adds support for changing the public device address. This feature
is required by controllers that do not provide a public address and
have HCI_QUIRK_INVALID_BDADDR set.

Even if a controller has a public device address, this is useful when
an embedded system wants to use its own value. As long as the driver
provides the set_bdaddr callback, this allows changing the device
address before powering on the controller.

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