Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291081
b: refs/heads/master
c: 8b90129
h: refs/heads/master
i:
  291079: 59f1944
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo F. Padovan committed Mar 1, 2012
1 parent 0e7c670 commit 2c61c58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 1de028ceb54ccd28cc96f1530a195ae1b6a6d5b5
refs/heads/master: 8b90129cc5789a4c65547c91c9a7b1fd3a4d56a4
10 changes: 8 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2602,12 +2602,18 @@ static int start_discovery(struct sock *sk, u16 index,

switch (hdev->discovery.type) {
case DISCOV_TYPE_BREDR:
err = hci_do_inquiry(hdev, INQUIRY_LEN_BREDR);
if (lmp_bredr_capable(hdev))
err = hci_do_inquiry(hdev, INQUIRY_LEN_BREDR);
else
err = -ENOTSUPP;
break;

case DISCOV_TYPE_LE:
err = hci_le_scan(hdev, LE_SCAN_TYPE, LE_SCAN_INT,
if (lmp_host_le_capable(hdev))
err = hci_le_scan(hdev, LE_SCAN_TYPE, LE_SCAN_INT,
LE_SCAN_WIN, LE_SCAN_TIMEOUT_LE_ONLY);
else
err = -ENOTSUPP;
break;

case DISCOV_TYPE_INTERLEAVED:
Expand Down

0 comments on commit 2c61c58

Please sign in to comment.