diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-22 12:06:34 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-22 12:59:24 -0500 |
commit | 755a900fcde16c66223a85259859a3b534b6c64c (patch) | |
tree | 039cbab2a8e475add8684559a27f7d6b5a65fc4f | |
parent | 199a2fb14d1d4cb2a1eb2fe05b725f36bb4f55ba (diff) |
Bluetooth: Add mgmt defines for privacy
This patch adds basic mgmt defines for enabling privacy. This includes a
new setting flag as well as the Set Privacy command.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | include/net/bluetooth/mgmt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 2e46251e8aec..62d560624e3d 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -96,6 +96,7 @@ struct mgmt_rp_read_index_list { | |||
96 | #define MGMT_SETTING_ADVERTISING 0x00000400 | 96 | #define MGMT_SETTING_ADVERTISING 0x00000400 |
97 | #define MGMT_SETTING_SECURE_CONN 0x00000800 | 97 | #define MGMT_SETTING_SECURE_CONN 0x00000800 |
98 | #define MGMT_SETTING_DEBUG_KEYS 0x00001000 | 98 | #define MGMT_SETTING_DEBUG_KEYS 0x00001000 |
99 | #define MGMT_SETTING_PRIVACY 0x00002000 | ||
99 | 100 | ||
100 | #define MGMT_OP_READ_INFO 0x0004 | 101 | #define MGMT_OP_READ_INFO 0x0004 |
101 | #define MGMT_READ_INFO_SIZE 0 | 102 | #define MGMT_READ_INFO_SIZE 0 |
@@ -389,6 +390,13 @@ struct mgmt_cp_set_scan_params { | |||
389 | 390 | ||
390 | #define MGMT_OP_SET_DEBUG_KEYS 0x002E | 391 | #define MGMT_OP_SET_DEBUG_KEYS 0x002E |
391 | 392 | ||
393 | #define MGMT_OP_SET_PRIVACY 0x002F | ||
394 | struct mgmt_cp_set_privacy { | ||
395 | __u8 privacy; | ||
396 | __u8 irk[16]; | ||
397 | } __packed; | ||
398 | #define MGMT_SET_PRIVACY_SIZE 17 | ||
399 | |||
392 | struct mgmt_irk_info { | 400 | struct mgmt_irk_info { |
393 | struct mgmt_addr_info addr; | 401 | struct mgmt_addr_info addr; |
394 | __u8 val[16]; | 402 | __u8 val[16]; |