aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-02-20 08:50:37 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-20 08:59:22 -0500
commit040030ef7d907107e6489b39da518bdf94136d68 (patch)
tree79617d057852bc0293a63d9a176ca73972404824 /include/net/bluetooth/hci_core.h
parente0edf3733fb62f91bbb8ec3fab4a90b0ac2dd037 (diff)
Bluetooth: Remove HCI notifier handling
The HCI notifier handling was never used outside of Bluetooth core layer and thus remove it and replace it with direct function calls. Also move the stack internal event generation into the HCI socket layer. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 9209e4c8a211..41adae509e9c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -941,21 +941,18 @@ static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, u8 *data,
941int hci_register_cb(struct hci_cb *hcb); 941int hci_register_cb(struct hci_cb *hcb);
942int hci_unregister_cb(struct hci_cb *hcb); 942int hci_unregister_cb(struct hci_cb *hcb);
943 943
944int hci_register_notifier(struct notifier_block *nb);
945int hci_unregister_notifier(struct notifier_block *nb);
946
947int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param); 944int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param);
948void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags); 945void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags);
949void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb); 946void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb);
950 947
951void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode); 948void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode);
952 949
953void hci_si_event(struct hci_dev *hdev, int type, int dlen, void *data);
954
955/* ----- HCI Sockets ----- */ 950/* ----- HCI Sockets ----- */
956void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb); 951void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb);
957void hci_send_to_control(struct sk_buff *skb, struct sock *skip_sk); 952void hci_send_to_control(struct sk_buff *skb, struct sock *skip_sk);
958 953
954void hci_sock_dev_event(struct hci_dev *hdev, int event);
955
959/* Management interface */ 956/* Management interface */
960#define MGMT_ADDR_BREDR 0x00 957#define MGMT_ADDR_BREDR 0x00
961#define MGMT_ADDR_LE_PUBLIC 0x01 958#define MGMT_ADDR_LE_PUBLIC 0x01