Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290928
b: refs/heads/master
c: 6fbe195
h: refs/heads/master
v: v3
  • Loading branch information
Andre Guedes authored and Johan Hedberg committed Feb 13, 2012
1 parent d72cf2a commit ee776e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c599008f8f999dab8cb4a6404be99bdc4716ba15
refs/heads/master: 6fbe195dc41c4fae1fa7aca1a38c888de1d24e2d
11 changes: 7 additions & 4 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,15 @@ bool hci_discovery_active(struct hci_dev *hdev)
{
struct discovery_state *discov = &hdev->discovery;

if (discov->state == DISCOVERY_INQUIRY ||
discov->state == DISCOVERY_LE_SCAN ||
discov->state == DISCOVERY_RESOLVING)
switch (discov->state) {
case DISCOVERY_INQUIRY:
case DISCOVERY_LE_SCAN:
case DISCOVERY_RESOLVING:
return true;

return false;
default:
return false;
}
}

void hci_discovery_set_state(struct hci_dev *hdev, int state)
Expand Down

0 comments on commit ee776e8

Please sign in to comment.