diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2014-05-15 12:37:20 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:00:33 +0900 |
commit | 120d6061fcf39554c9a18fe6e7960ba7fc4c750d (patch) | |
tree | 0fea23bda1ecda2c0fcb134a1d08cd2508162bf2 /include/net | |
parent | 538d0c5ae18b3cb5f62ffcb6cecb3aed76caca84 (diff) | |
download | linux-3.10-120d6061fcf39554c9a18fe6e7960ba7fc4c750d.tar.gz linux-3.10-120d6061fcf39554c9a18fe6e7960ba7fc4c750d.tar.bz2 linux-3.10-120d6061fcf39554c9a18fe6e7960ba7fc4c750d.zip |
Bluetooth: add hci event notification
WORKAROUND: Temporary workaround for bluetooth enable.
For specific hci events, operations are needed. So this patch adds
event notification and its notifier registration.
Change-Id: I6f8fe0b3b90c12d7f4fe35823d25b9fbdcd98d06
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci.h | 1 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 0ef00066dae..67c824b29f3 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -42,6 +42,7 @@ #define HCI_DEV_DOWN 4 #define HCI_DEV_SUSPEND 5 #define HCI_DEV_RESUME 6 +#define HCI_DEV_WRITE 7 /* HCI notify events */ #define HCI_NOTIFY_CONN_ADD 1 diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 7cb6d360d14..1c8ae61dcaf 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -1068,6 +1068,8 @@ static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, u8 *data, int hci_register_cb(struct hci_cb *hcb); int hci_unregister_cb(struct hci_cb *hcb); +int hci_register_notifier(struct notifier_block *nb); +int hci_unregister_notifier(struct notifier_block *nb); struct hci_request { struct hci_dev *hdev; |