Lines Matching full:scanning
1092 * scanning and non-connectable advertising. in hci_update_random_address_sync()
2179 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
2184 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
2190 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2575 /* Cannot disable addr resolution if scanning is enabled or in hci_pause_addr_resolution()
2669 /* Device must not be scanning when updating the accept list.
2679 * Enable Scanning
2828 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
2968 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
2989 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
2995 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
3000 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
3016 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
3017 * not allow accept list modification while scanning. in hci_passive_scan_sync()
3022 * passive scanning cannot be started since that would require the host in hci_passive_scan_sync()
3065 /* Disable duplicates filter when scanning for advertisement in hci_passive_scan_sync()
3073 * scanning, it is necessary to disable duplicates filter, in hci_passive_scan_sync()
3095 /* This function controls the passive scanning based on hdev->pend_le_conns
3096 * list. If there are pending LE connection we start the background scanning,
3101 * Disable Scanning -> Update Accept List ->
3104 * Enable Scanning
3108 * Disable Scanning
3122 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
3130 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
3149 * background scanning. in hci_update_passive_scan_sync()
3152 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
3156 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
3163 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
3170 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
3174 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5440 /* Return reason if scanning since the connection shall probably be in hci_le_connect_cancel_sync()
5588 * or in case of LE it was still scanning so it can be cleanup in hci_abort_conn_sync()
5840 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5842 * discovery scanning parameters. in hci_active_scan_sync()
5846 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5873 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
5895 /* Resume passive scanning */ in hci_active_scan_sync()
5924 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
5926 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
5929 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
6001 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
6033 if (scan && !scanning) in hci_update_event_filter_sync()
6035 else if (!scan && scanning) in hci_update_event_filter_sync()
6060 * Pause discovery (active scanning/inquiry)
6062 * Pause Scanning (passive scanning in case discovery was not active)
6068 * Update passive scanning (lower duty cycle)
6091 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
6118 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
6177 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
6187 * Update passive scanning (normal duty cycle)
6189 * Resume discovery (active scanning/inquiry)
6205 /* Resume scanning */ in hci_resume_sync()
6428 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6462 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()