[Bluetooth] Handle command complete event for exit periodic inquiry
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 21 Sep 2006 14:04:00 +0000 (16:04 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:29 +0000 (18:01 -0700)
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>
include/net/bluetooth/hci.h
net/bluetooth/hci_event.c

index fde08f452b59fed7ee00a07878c51d0415c6eaac..5f04181b8109a6d6722c727c1cf03c3a775be900 100644 (file)
@@ -340,6 +340,8 @@ struct hci_cp_inquiry {
 
 #define OCF_INQUIRY_CANCEL     0x0002
 
+#define OCF_EXIT_PERIODIC_INQ  0x0004
+
 #define OCF_LINK_KEY_REPLY     0x000B
 struct hci_cp_link_key_reply {
        bdaddr_t bdaddr;
index 3896dabab11da70898640581f9c3e5b2195f7678..c6cd243939e611519fc3ef418a5f1e2da2974a60 100644 (file)
@@ -62,6 +62,7 @@ static void hci_cc_link_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb
 
        switch (ocf) {
        case OCF_INQUIRY_CANCEL:
+       case OCF_EXIT_PERIODIC_INQ:
                status = *((__u8 *) skb->data);
 
                if (status) {