diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-09 08:26:12 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 10:01:36 -0500 |
commit | 272d90df2d4d065e782cafb08358bd8918bf703a (patch) | |
tree | a39907ac765574b8b0bf087a7aa0f37cc580d5a7 /include/net | |
parent | 88c3df13ca06718e5a8f509ae9cbb1228c10d537 (diff) |
Bluetooth: Add address type to user_confirm and user_passkey messages
This patch upadate the user confirm and user passkey mgmt messages to
match the latest API specification by adding an address type parameter
to them.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 18 | ||||
-rw-r--r-- | include/net/bluetooth/mgmt.h | 16 |
2 files changed, 18 insertions, 16 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 634a0cdcdad6..5f27694068f2 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -968,16 +968,18 @@ int mgmt_pin_code_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
968 | int mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, | 968 | int mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, |
969 | u8 status); | 969 | u8 status); |
970 | int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, | 970 | int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, |
971 | __le32 value, u8 confirm_hint); | 971 | u8 link_type, u8 addr_type, __le32 value, |
972 | u8 confirm_hint); | ||
972 | int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, | 973 | int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, |
973 | u8 status); | 974 | u8 link_type, u8 addr_type, u8 status); |
974 | int mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, | 975 | int mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, |
975 | bdaddr_t *bdaddr, u8 status); | 976 | u8 link_type, u8 addr_type, u8 status); |
976 | int mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr); | 977 | int mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr, |
978 | u8 link_type, u8 addr_type); | ||
977 | int mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, | 979 | int mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, |
978 | u8 status); | 980 | u8 link_type, u8 addr_type, u8 status); |
979 | int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, | 981 | int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, |
980 | bdaddr_t *bdaddr, u8 status); | 982 | u8 link_type, u8 addr_type, u8 status); |
981 | int mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 status); | 983 | int mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 status); |
982 | int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status); | 984 | int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status); |
983 | int mgmt_read_local_oob_data_reply_complete(struct hci_dev *hdev, u8 *hash, | 985 | int mgmt_read_local_oob_data_reply_complete(struct hci_dev *hdev, u8 *hash, |
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 735e547e3448..378d498896b3 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -235,31 +235,31 @@ struct mgmt_rp_unpair_device { | |||
235 | 235 | ||
236 | #define MGMT_OP_USER_CONFIRM_REPLY 0x001C | 236 | #define MGMT_OP_USER_CONFIRM_REPLY 0x001C |
237 | struct mgmt_cp_user_confirm_reply { | 237 | struct mgmt_cp_user_confirm_reply { |
238 | bdaddr_t bdaddr; | 238 | struct mgmt_addr_info addr; |
239 | } __packed; | 239 | } __packed; |
240 | struct mgmt_rp_user_confirm_reply { | 240 | struct mgmt_rp_user_confirm_reply { |
241 | bdaddr_t bdaddr; | 241 | struct mgmt_addr_info addr; |
242 | __u8 status; | 242 | __u8 status; |
243 | } __packed; | 243 | } __packed; |
244 | 244 | ||
245 | #define MGMT_OP_USER_CONFIRM_NEG_REPLY 0x001D | 245 | #define MGMT_OP_USER_CONFIRM_NEG_REPLY 0x001D |
246 | struct mgmt_cp_user_confirm_neg_reply { | 246 | struct mgmt_cp_user_confirm_neg_reply { |
247 | bdaddr_t bdaddr; | 247 | struct mgmt_addr_info addr; |
248 | } __packed; | 248 | } __packed; |
249 | 249 | ||
250 | #define MGMT_OP_USER_PASSKEY_REPLY 0x001E | 250 | #define MGMT_OP_USER_PASSKEY_REPLY 0x001E |
251 | struct mgmt_cp_user_passkey_reply { | 251 | struct mgmt_cp_user_passkey_reply { |
252 | bdaddr_t bdaddr; | 252 | struct mgmt_addr_info addr; |
253 | __le32 passkey; | 253 | __le32 passkey; |
254 | } __packed; | 254 | } __packed; |
255 | struct mgmt_rp_user_passkey_reply { | 255 | struct mgmt_rp_user_passkey_reply { |
256 | bdaddr_t bdaddr; | 256 | struct mgmt_addr_info addr; |
257 | __u8 status; | 257 | __u8 status; |
258 | } __packed; | 258 | } __packed; |
259 | 259 | ||
260 | #define MGMT_OP_USER_PASSKEY_NEG_REPLY 0x001F | 260 | #define MGMT_OP_USER_PASSKEY_NEG_REPLY 0x001F |
261 | struct mgmt_cp_user_passkey_neg_reply { | 261 | struct mgmt_cp_user_passkey_neg_reply { |
262 | bdaddr_t bdaddr; | 262 | struct mgmt_addr_info addr; |
263 | } __packed; | 263 | } __packed; |
264 | 264 | ||
265 | #define MGMT_OP_READ_LOCAL_OOB_DATA 0x0020 | 265 | #define MGMT_OP_READ_LOCAL_OOB_DATA 0x0020 |
@@ -376,14 +376,14 @@ struct mgmt_ev_pin_code_request { | |||
376 | 376 | ||
377 | #define MGMT_EV_USER_CONFIRM_REQUEST 0x000F | 377 | #define MGMT_EV_USER_CONFIRM_REQUEST 0x000F |
378 | struct mgmt_ev_user_confirm_request { | 378 | struct mgmt_ev_user_confirm_request { |
379 | bdaddr_t bdaddr; | 379 | struct mgmt_addr_info addr; |
380 | __u8 confirm_hint; | 380 | __u8 confirm_hint; |
381 | __le32 value; | 381 | __le32 value; |
382 | } __packed; | 382 | } __packed; |
383 | 383 | ||
384 | #define MGMT_EV_USER_PASSKEY_REQUEST 0x0010 | 384 | #define MGMT_EV_USER_PASSKEY_REQUEST 0x0010 |
385 | struct mgmt_ev_user_passkey_request { | 385 | struct mgmt_ev_user_passkey_request { |
386 | bdaddr_t bdaddr; | 386 | struct mgmt_addr_info addr; |
387 | } __packed; | 387 | } __packed; |
388 | 388 | ||
389 | #define MGMT_EV_AUTH_FAILED 0x0011 | 389 | #define MGMT_EV_AUTH_FAILED 0x0011 |