diff options
author | Andre Guedes <aguedespe@gmail.com> | 2012-03-20 23:03:35 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-08 23:41:34 -0400 |
commit | 4d93483b1c593a5ee5b3f917c26dbaad59dadde2 (patch) | |
tree | 3e0b15c5a0ee5dee04c4f3597bdf3283ebd83533 /net/bluetooth/hci_event.c | |
parent | e0d9727edb3b66865989a1f592c06606392146ca (diff) |
Bluetooth: Add Periodic Inquiry command complete handler
This patch adds a handler function to Periodic Inquiry command
complete event.
Signed-off-by: Andre Guedes <aguedespe@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0a936291f0e7..a0fc1afb3ae4 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -69,6 +69,13 @@ static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) | |||
69 | hci_conn_check_pending(hdev); | 69 | hci_conn_check_pending(hdev); |
70 | } | 70 | } |
71 | 71 | ||
72 | static void hci_cc_periodic_inq(struct hci_dev *hdev, struct sk_buff *skb) | ||
73 | { | ||
74 | __u8 status = *((__u8 *) skb->data); | ||
75 | |||
76 | BT_DBG("%s status 0x%x", hdev->name, status); | ||
77 | } | ||
78 | |||
72 | static void hci_cc_exit_periodic_inq(struct hci_dev *hdev, struct sk_buff *skb) | 79 | static void hci_cc_exit_periodic_inq(struct hci_dev *hdev, struct sk_buff *skb) |
73 | { | 80 | { |
74 | __u8 status = *((__u8 *) skb->data); | 81 | __u8 status = *((__u8 *) skb->data); |
@@ -2155,6 +2162,10 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk | |||
2155 | hci_cc_inquiry_cancel(hdev, skb); | 2162 | hci_cc_inquiry_cancel(hdev, skb); |
2156 | break; | 2163 | break; |
2157 | 2164 | ||
2165 | case HCI_OP_PERIODIC_INQ: | ||
2166 | hci_cc_periodic_inq(hdev, skb); | ||
2167 | break; | ||
2168 | |||
2158 | case HCI_OP_EXIT_PERIODIC_INQ: | 2169 | case HCI_OP_EXIT_PERIODIC_INQ: |
2159 | hci_cc_exit_periodic_inq(hdev, skb); | 2170 | hci_cc_exit_periodic_inq(hdev, skb); |
2160 | break; | 2171 | break; |