|
@@ -106,7 +106,6 @@ static const u16 mgmt_events[] = {
|
|
|
* These LE scan and inquiry parameters were chosen according to LE General
|
|
|
* Discovery Procedure specification.
|
|
|
*/
|
|
|
-#define LE_SCAN_TYPE 0x01
|
|
|
#define LE_SCAN_WIN 0x12
|
|
|
#define LE_SCAN_INT 0x12
|
|
|
#define LE_SCAN_TIMEOUT_LE_ONLY msecs_to_jiffies(10240)
|
|
@@ -2703,7 +2702,7 @@ static int start_discovery(struct sock *sk, struct hci_dev *hdev,
|
|
|
goto failed;
|
|
|
}
|
|
|
|
|
|
- err = hci_le_scan(hdev, LE_SCAN_TYPE, LE_SCAN_INT,
|
|
|
+ err = hci_le_scan(hdev, LE_SCAN_ACTIVE, LE_SCAN_INT,
|
|
|
LE_SCAN_WIN, LE_SCAN_TIMEOUT_LE_ONLY);
|
|
|
break;
|
|
|
|
|
@@ -2715,8 +2714,8 @@ static int start_discovery(struct sock *sk, struct hci_dev *hdev,
|
|
|
goto failed;
|
|
|
}
|
|
|
|
|
|
- err = hci_le_scan(hdev, LE_SCAN_TYPE, LE_SCAN_INT, LE_SCAN_WIN,
|
|
|
- LE_SCAN_TIMEOUT_BREDR_LE);
|
|
|
+ err = hci_le_scan(hdev, LE_SCAN_ACTIVE, LE_SCAN_INT,
|
|
|
+ LE_SCAN_WIN, LE_SCAN_TIMEOUT_BREDR_LE);
|
|
|
break;
|
|
|
|
|
|
default:
|