Lines Matching full:scanning
863 * scanning and non-connectable advertising. in hci_update_random_address_sync()
1963 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
1968 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
1974 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2364 /* Cannot disable addr resolution if scanning is enabled or in hci_pause_addr_resolution()
2448 /* Device must not be scanning when updating the accept list.
2458 * Enable Scanning
2582 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
2678 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
2699 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
2705 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
2710 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
2726 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
2727 * not allow accept list modification while scanning. in hci_passive_scan_sync()
2770 /* This function controls the passive scanning based on hdev->pend_le_conns
2771 * list. If there are pending LE connection we start the background scanning,
2776 * Disable Scanning -> Update Accept List ->
2779 * Enable Scanning
2783 * Disable Scanning
2797 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
2805 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
2824 * background scanning. in hci_update_passive_scan_sync()
2827 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
2831 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
2838 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
2845 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
2849 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5203 /* Return reason if scanning since the connection shall probably be in hci_le_connect_cancel_sync()
5351 * or in case of LE it was still scanning so it can be cleanup in hci_abort_conn_sync()
5596 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5598 * discovery scanning parameters. in hci_active_scan_sync()
5602 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5629 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
5651 /* Resume passive scanning */ in hci_active_scan_sync()
5680 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
5682 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
5685 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
5758 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
5790 if (scan && !scanning) in hci_update_event_filter_sync()
5792 else if (!scan && scanning) in hci_update_event_filter_sync()
5817 * Pause discovery (active scanning/inquiry)
5819 * Pause Scanning (passive scanning in case discovery was not active)
5825 * Update passive scanning (lower duty cycle)
5848 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
5875 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
5934 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
5944 * Update passive scanning (normal duty cycle)
5946 * Resume discovery (active scanning/inquiry)
5962 /* Resume scanning */ in hci_resume_sync()
6173 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6207 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()