Lines Matching full:scanning
402 /* If controller is not scanning we are done. */ in hci_le_scan_restart_sync()
407 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_le_scan_restart_sync()
931 * scanning and non-connectable advertising. in hci_update_random_address_sync()
2031 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
2036 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
2042 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2429 /* Cannot disable addr resolution if scanning is enabled or in hci_pause_addr_resolution()
2513 /* Device must not be scanning when updating the accept list.
2523 * Enable Scanning
2647 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
2743 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
2764 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
2770 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
2775 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
2791 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
2792 * not allow accept list modification while scanning. in hci_passive_scan_sync()
2835 /* This function controls the passive scanning based on hdev->pend_le_conns
2836 * list. If there are pending LE connection we start the background scanning,
2841 * Disable Scanning -> Update Accept List ->
2844 * Enable Scanning
2848 * Disable Scanning
2862 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
2870 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
2889 * background scanning. in hci_update_passive_scan_sync()
2892 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
2896 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
2903 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
2910 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
2914 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5257 /* Return reason if scanning since the connection shall probably be in hci_le_connect_cancel_sync()
5420 * or in case of LE it was still scanning so it can be cleanup in hci_abort_conn_sync()
5665 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5667 * discovery scanning parameters. in hci_active_scan_sync()
5671 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5696 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
5704 * it is common to have active scanning for a short period of in hci_active_scan_sync()
5721 /* Resume passive scanning */ in hci_active_scan_sync()
5750 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
5752 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
5755 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
5788 * restarting scanning during the discovery phase. in hci_start_discovery_sync()
5839 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
5871 if (scan && !scanning) in hci_update_event_filter_sync()
5873 else if (!scan && scanning) in hci_update_event_filter_sync()
5898 * Pause discovery (active scanning/inquiry)
5900 * Pause Scanning (passive scanning in case discovery was not active)
5906 * Update passive scanning (lower duty cycle)
5929 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
5956 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
6015 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
6025 * Update passive scanning (normal duty cycle)
6027 * Resume discovery (active scanning/inquiry)
6043 /* Resume scanning */ in hci_resume_sync()
6254 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6288 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()