aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-09 08:56:11 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 10:01:36 -0500
commit88c1fe4ba55c7245ad2f3c81689f854287875121 (patch)
tree69447c418d6f4560df19bc1a69a98a49cda0d4c9 /include/net
parent664ce4cc293cd6c76236617f78689d0e03e69287 (diff)
Bluetooth: Add address type to mgmt blacklist messages
This patch updates the implmentation for mgmt_block_device and mgmt_unblock_device and their corresponding events to match the latest API specification. 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.h8
-rw-r--r--include/net/bluetooth/mgmt.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 5f27694068f2..14a655f3929c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -646,8 +646,8 @@ int hci_inquiry(void __user *arg);
646 646
647struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev, bdaddr_t *bdaddr); 647struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev, bdaddr_t *bdaddr);
648int hci_blacklist_clear(struct hci_dev *hdev); 648int hci_blacklist_clear(struct hci_dev *hdev);
649int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr); 649int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
650int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr); 650int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
651 651
652int hci_uuids_clear(struct hci_dev *hdev); 652int hci_uuids_clear(struct hci_dev *hdev);
653 653
@@ -992,8 +992,8 @@ int mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
992int mgmt_start_discovery_failed(struct hci_dev *hdev, u8 status); 992int mgmt_start_discovery_failed(struct hci_dev *hdev, u8 status);
993int mgmt_stop_discovery_failed(struct hci_dev *hdev, u8 status); 993int mgmt_stop_discovery_failed(struct hci_dev *hdev, u8 status);
994int mgmt_discovering(struct hci_dev *hdev, u8 discovering); 994int mgmt_discovering(struct hci_dev *hdev, u8 discovering);
995int mgmt_device_blocked(struct hci_dev *hdev, bdaddr_t *bdaddr); 995int mgmt_device_blocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
996int mgmt_device_unblocked(struct hci_dev *hdev, bdaddr_t *bdaddr); 996int mgmt_device_unblocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
997 997
998int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent); 998int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent);
999 999
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index f284499b5f7f..92f85c834677 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -299,12 +299,12 @@ struct mgmt_rp_confirm_name {
299 299
300#define MGMT_OP_BLOCK_DEVICE 0x0026 300#define MGMT_OP_BLOCK_DEVICE 0x0026
301struct mgmt_cp_block_device { 301struct mgmt_cp_block_device {
302 bdaddr_t bdaddr; 302 struct mgmt_addr_info addr;
303} __packed; 303} __packed;
304 304
305#define MGMT_OP_UNBLOCK_DEVICE 0x0027 305#define MGMT_OP_UNBLOCK_DEVICE 0x0027
306struct mgmt_cp_unblock_device { 306struct mgmt_cp_unblock_device {
307 bdaddr_t bdaddr; 307 struct mgmt_addr_info addr;
308} __packed; 308} __packed;
309 309
310#define MGMT_EV_CMD_COMPLETE 0x0001 310#define MGMT_EV_CMD_COMPLETE 0x0001
@@ -405,10 +405,10 @@ struct mgmt_ev_device_found {
405 405
406#define MGMT_EV_DEVICE_BLOCKED 0x0014 406#define MGMT_EV_DEVICE_BLOCKED 0x0014
407struct mgmt_ev_device_blocked { 407struct mgmt_ev_device_blocked {
408 bdaddr_t bdaddr; 408 struct mgmt_addr_info addr;
409} __packed; 409} __packed;
410 410
411#define MGMT_EV_DEVICE_UNBLOCKED 0x0015 411#define MGMT_EV_DEVICE_UNBLOCKED 0x0015
412struct mgmt_ev_device_unblocked { 412struct mgmt_ev_device_unblocked {
413 bdaddr_t bdaddr; 413 struct mgmt_addr_info addr;
414} __packed; 414} __packed;