Skip to content

Commit

Permalink
[Bluetooth] Handle command complete event for exit periodic inquiry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Sep 29, 2006
1 parent 0ac5393 commit defc761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/bluetooth/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit defc761

Please sign in to comment.