]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[Bluetooth] Handle command complete event for exit periodic inquiry
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Jan 2007 19:32:22 +0000 (20:32 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 26 Jan 2007 19:49:22 +0000 (20:49 +0100)
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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
include/net/bluetooth/hci.h
net/bluetooth/hci_event.c

index b06a2d2f63d2dd3d8aaef4b7f7ad22431609a64d..80a4c1ba82c3e8e0aed6a7b7906a06fd978ae051 100644 (file)
@@ -329,6 +329,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 eb64555d1fb346d90ff34dad9ed16ef4700d0fdc..d02ff17e65fee9a8ad796d2ea7811ed56045d228 100644 (file)
@@ -63,6 +63,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) {