Lines Matching refs:scan
359 bt_dev_err(hdev, "failed to disable LE scan: %d", status);
365 /* If we were running LE only scan, change discovery state. If
431 bt_dev_err(hdev, "failed to restart LE scan: status %d",
442 /* When the scan was started, hdev->le_scan_disable has been queued
443 * after duration from scan_start. During scan restart this job
445 * timeout, to make sure that scan does not run indefinitely.
1037 * hdev->random_addr is shared with scan state machine.
2074 bt_dev_dbg(hdev, "cancelling interleave scan");
2086 /* Do interleaved scan only if all of the following are true:
2090 * If so, we should alternate between allowlist scan and one without
2102 bt_dev_dbg(hdev, "starting interleave scan");
2443 bt_dev_err(hdev, "Command not allowed when scan/LE connect");
2499 /* Racing adds are handled in next scan update */
2838 bt_dev_dbg(hdev, "LE passive scan with acceptlist = %d", filter_policy);
2848 * If there are devices to scan:
2909 * keep the background scan running.
2913 * since some controllers are not able to scan and connect at
3102 /* 160 msec page scan interval */
3156 u8 scan;
3172 scan = SCAN_PAGE;
3174 scan = SCAN_DISABLED;
3177 scan |= SCAN_INQUIRY;
3179 if (test_bit(HCI_PSCAN, &hdev->flags) == !!(scan & SCAN_PAGE) &&
3180 test_bit(HCI_ISCAN, &hdev->flags) == !!(scan & SCAN_INQUIRY))
3183 return hci_write_scan_enable_sync(hdev, scan);
5699 /* Pause address resolution for active scan and stop advertising if
5783 /* During simultaneous discovery, we double LE scan
5809 * start and duration of the scan. This is required for
5860 u8 scan = SCAN_DISABLED;
5890 scan = SCAN_PAGE;
5893 if (scan && !scanning)
5894 hci_write_scan_enable_sync(hdev, scan);
5895 else if (!scan && scanning)
5896 hci_write_scan_enable_sync(hdev, scan);
5901 /* This function disables scan (BR and LE) and mark it as paused */
5907 /* Disable page scan if enabled */
5984 /* Update LE passive scan if enabled */
5987 /* Pause scan changes again. */
6027 /* This function resume scan and reset paused flag */
6062 /* Clear any event filters and restore scan state */
6311 * not able to scan and connect at the same time. Also set the
6313 * handler for scan disabling knows to set the correct discovery