diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-13 14:07:07 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-22 19:58:00 -0500 |
commit | c71e97bfaadfa727669fcfcf12301744fd169091 (patch) | |
tree | 0a0a04dee5ec1aa16ef1a6e67a78a0d5a03c14c2 /include/net/bluetooth | |
parent | f7b64e69c7c75c8e9f2d5e23edec8de1ce883bcc (diff) |
Bluetooth: Add management events for controller addition & removal
This patch adds Bluetooth Management interface events for controller
addition and removal. The events correspond to the existing HCI_DEV_REG
and HCI_DEV_UNREG stack internal events.
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | include/net/bluetooth/mgmt.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 1992fac7e921..3786ee83604e 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -662,6 +662,8 @@ void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb); | |||
662 | 662 | ||
663 | /* Management interface */ | 663 | /* Management interface */ |
664 | int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len); | 664 | int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len); |
665 | int mgmt_index_added(u16 index); | ||
666 | int mgmt_index_removed(u16 index); | ||
665 | 667 | ||
666 | /* HCI info for socket */ | 668 | /* HCI info for socket */ |
667 | #define hci_pi(sk) ((struct hci_pinfo *) sk) | 669 | #define hci_pi(sk) ((struct hci_pinfo *) sk) |
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 70985aacc14b..ca29c1367ffd 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -75,3 +75,13 @@ struct mgmt_ev_controller_error { | |||
75 | __le16 index; | 75 | __le16 index; |
76 | __u8 error_code; | 76 | __u8 error_code; |
77 | } __packed; | 77 | } __packed; |
78 | |||
79 | #define MGMT_EV_INDEX_ADDED 0x0004 | ||
80 | struct mgmt_ev_index_added { | ||
81 | __le16 index; | ||
82 | } __packed; | ||
83 | |||
84 | #define MGMT_EV_INDEX_REMOVED 0x0005 | ||
85 | struct mgmt_ev_index_removed { | ||
86 | __le16 index; | ||
87 | } __packed; | ||