diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-07-06 06:11:15 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-06 06:42:20 -0400 |
commit | 9713c17b086c1ebfe34ea4d34147a778276e2dab (patch) | |
tree | 2e5dcc1d74effed93b919b8b3c617e937d7292e5 /include/net/bluetooth/mgmt.h | |
parent | d603b76b0c18c5adf4a3164dff50bb15948cd7bd (diff) |
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>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 80606d2fe086..623d5203c592 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -489,6 +489,12 @@ struct mgmt_cp_set_external_config { | |||
489 | } __packed; | 489 | } __packed; |
490 | #define MGMT_SET_EXTERNAL_CONFIG_SIZE 1 | 490 | #define MGMT_SET_EXTERNAL_CONFIG_SIZE 1 |
491 | 491 | ||
492 | #define MGMT_OP_SET_PUBLIC_ADDRESS 0x0039 | ||
493 | struct mgmt_cp_set_public_address { | ||
494 | bdaddr_t bdaddr; | ||
495 | } __packed; | ||
496 | #define MGMT_SET_PUBLIC_ADDRESS_SIZE 6 | ||
497 | |||
492 | #define MGMT_EV_CMD_COMPLETE 0x0001 | 498 | #define MGMT_EV_CMD_COMPLETE 0x0001 |
493 | struct mgmt_ev_cmd_complete { | 499 | struct mgmt_ev_cmd_complete { |
494 | __le16 opcode; | 500 | __le16 opcode; |