Lines Matching full:scanning
400 /* If controller is not scanning we are done. */ in hci_le_scan_restart_sync()
405 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_le_scan_restart_sync()
903 * scanning and non-connectable advertising. in hci_update_random_address_sync()
2002 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
2007 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
2013 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2379 /* Device must not be scanning when updating the accept list.
2389 * Enable Scanning
2484 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
2507 /* Returns true if an le connection is in the scanning state */
2601 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
2622 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
2628 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
2633 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
2649 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
2650 * not allow accept list modification while scanning. in hci_passive_scan_sync()
2693 /* This function controls the passive scanning based on hdev->pend_le_conns
2694 * list. If there are pending LE connection we start the background scanning,
2699 * Disable Scanning -> Update Accept List ->
2702 * Enable Scanning
2706 * Disable Scanning
2720 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
2728 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
2747 * background scanning. in hci_update_passive_scan_sync()
2750 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
2754 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
2761 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
2768 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
2772 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5366 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5368 * discovery scanning parameters. in hci_active_scan_sync()
5372 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5378 /* Pause advertising since active scanning disables address resolution in hci_active_scan_sync()
5389 /* Disable address resolution while doing active scanning since the in hci_active_scan_sync()
5412 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
5420 * it is common to have active scanning for a short period of in hci_active_scan_sync()
5437 /* Resume passive scanning */ in hci_active_scan_sync()
5466 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
5468 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
5471 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
5504 * restarting scanning during the discovery phase. in hci_start_discovery_sync()
5555 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
5587 if (scan && !scanning) in hci_update_event_filter_sync()
5589 else if (!scan && scanning) in hci_update_event_filter_sync()
5614 * Pause discovery (active scanning/inquiry)
5616 * Pause Scanning (passive scanning in case discovery was not active)
5622 * Update passive scanning (lower duty cycle)
5645 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
5672 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
5731 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
5741 * Update passive scanning (normal duty cycle)
5743 * Resume discovery (active scanning/inquiry)
5759 /* Resume scanning */ in hci_resume_sync()
5971 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6005 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()