Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290971
b: refs/heads/master
c: 4aab14e
h: refs/heads/master
i:
  290969: 80c03f4
  290967: d2b25de
v: v3
  • Loading branch information
Andre Guedes authored and Johan Hedberg committed Feb 19, 2012
1 parent bfdb978 commit 6dacfad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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: f39799f5047c4827b200acbf33cd0ba076afd7ed
refs/heads/master: 4aab14e5504e84c42534378f91e836e6f55d0886
1 change: 1 addition & 0 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ struct inquiry_entry {
};

struct discovery_state {
int type;
enum {
DISCOVERY_STOPPED,
DISCOVERY_STARTING,
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ void hci_discovery_set_state(struct hci_dev *hdev, int state)

switch (state) {
case DISCOVERY_STOPPED:
hdev->discovery.type = 0;

if (hdev->discovery.state != DISCOVERY_STARTING)
mgmt_discovering(hdev, 0);
break;
Expand Down
4 changes: 3 additions & 1 deletion trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,9 @@ static int start_discovery(struct sock *sk, u16 index,
goto failed;
}

switch (cp->type) {
hdev->discovery.type = cp->type;

switch (hdev->discovery.type) {
case DISCOV_TYPE_BREDR:
case DISCOV_TYPE_INTERLEAVED:
err = hci_do_inquiry(hdev, INQUIRY_LEN_BREDR);
Expand Down

0 comments on commit 6dacfad

Please sign in to comment.