Lines Matching full:scanning
423 /* If controller is not scanning we are done. */ in hci_le_scan_restart_sync()
428 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_le_scan_restart_sync()
1111 * scanning and non-connectable advertising. in hci_update_random_address_sync()
2211 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
2216 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
2222 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2612 /* Cannot disable addr resolution if scanning is enabled or in hci_pause_addr_resolution()
2696 /* Device must not be scanning when updating the accept list.
2706 * Enable Scanning
2830 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
2970 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
2991 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
2997 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
3002 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
3018 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
3019 * not allow accept list modification while scanning. in hci_passive_scan_sync()
3024 * passive scanning cannot be started since that would require the host in hci_passive_scan_sync()
3067 /* Disable duplicates filter when scanning for advertisement in hci_passive_scan_sync()
3075 * scanning, it is necessary to disable duplicates filter, in hci_passive_scan_sync()
3097 /* This function controls the passive scanning based on hdev->pend_le_conns
3098 * list. If there are pending LE connection we start the background scanning,
3103 * Disable Scanning -> Update Accept List ->
3106 * Enable Scanning
3110 * Disable Scanning
3124 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
3132 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
3151 * background scanning. in hci_update_passive_scan_sync()
3154 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
3158 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
3165 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
3172 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
3176 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5453 /* Return reason if scanning since the connection shall probably be in hci_le_connect_cancel_sync()
5601 * or in case of LE it was still scanning so it can be cleanup in hci_abort_conn_sync()
5846 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5848 * discovery scanning parameters. in hci_active_scan_sync()
5852 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5877 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
5885 * it is common to have active scanning for a short period of in hci_active_scan_sync()
5902 /* Resume passive scanning */ in hci_active_scan_sync()
5931 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
5933 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
5936 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
5969 * restarting scanning during the discovery phase. in hci_start_discovery_sync()
6020 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
6052 if (scan && !scanning) in hci_update_event_filter_sync()
6054 else if (!scan && scanning) in hci_update_event_filter_sync()
6079 * Pause discovery (active scanning/inquiry)
6081 * Pause Scanning (passive scanning in case discovery was not active)
6087 * Update passive scanning (lower duty cycle)
6110 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
6137 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
6196 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
6206 * Update passive scanning (normal duty cycle)
6208 * Resume discovery (active scanning/inquiry)
6224 /* Resume scanning */ in hci_resume_sync()
6444 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6478 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()