diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-09-21 10:04:00 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:01:29 -0400 |
commit | defc761bc25643eeedee3abd6af0079ef214b55d (patch) | |
tree | 4ac4e3584629345f8c20f5dcaace2cb011fa9a94 | |
parent | 0ac53939a06c610b394aeb0211b985804f2d2da3 (diff) |
[Bluetooth] Handle command complete event for exit periodic inquiry
The command complete event of the exit periodic inquiry command must
clear the HCI_INQUIRY flag and finish the HCI request.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | include/net/bluetooth/hci.h | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index fde08f452b59..5f04181b8109 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -340,6 +340,8 @@ struct hci_cp_inquiry { | |||
340 | 340 | ||
341 | #define OCF_INQUIRY_CANCEL 0x0002 | 341 | #define OCF_INQUIRY_CANCEL 0x0002 |
342 | 342 | ||
343 | #define OCF_EXIT_PERIODIC_INQ 0x0004 | ||
344 | |||
343 | #define OCF_LINK_KEY_REPLY 0x000B | 345 | #define OCF_LINK_KEY_REPLY 0x000B |
344 | struct hci_cp_link_key_reply { | 346 | struct hci_cp_link_key_reply { |
345 | bdaddr_t bdaddr; | 347 | bdaddr_t bdaddr; |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 3896dabab11d..c6cd243939e6 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -62,6 +62,7 @@ static void hci_cc_link_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb | |||
62 | 62 | ||
63 | switch (ocf) { | 63 | switch (ocf) { |
64 | case OCF_INQUIRY_CANCEL: | 64 | case OCF_INQUIRY_CANCEL: |
65 | case OCF_EXIT_PERIODIC_INQ: | ||
65 | status = *((__u8 *) skb->data); | 66 | status = *((__u8 *) skb->data); |
66 | 67 | ||
67 | if (status) { | 68 | if (status) { |