Lines Matching full:scanning
1099 * scanning and non-connectable advertising. in hci_update_random_address_sync()
2229 /* If controller is not scanning we are done. */ in hci_scan_disable_sync()
2234 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_scan_disable_sync()
2240 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_scan_disable_sync()
2635 /* Cannot disable addr resolution if scanning is enabled or in hci_pause_addr_resolution()
2729 /* Device must not be scanning when updating the accept list.
2739 * Enable Scanning
2888 * - Interleaved scanning is not currently using the allowlist in hci_update_accept_list_sync()
3028 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_start_scan_sync()
3049 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_passive_scan_sync()
3055 bt_dev_err(hdev, "disable scanning failed: %d", err); in hci_passive_scan_sync()
3060 * during passive scanning. Not using an non-resolvable address in hci_passive_scan_sync()
3076 * happen before enabling scanning. The controller does in hci_passive_scan_sync()
3077 * not allow accept list modification while scanning. in hci_passive_scan_sync()
3082 * passive scanning cannot be started since that would require the host in hci_passive_scan_sync()
3125 /* Disable duplicates filter when scanning for advertisement in hci_passive_scan_sync()
3133 * scanning, it is necessary to disable duplicates filter, in hci_passive_scan_sync()
3155 /* This function controls the passive scanning based on hdev->pend_le_conns
3156 * list. If there are pending LE connection we start the background scanning,
3161 * Disable Scanning -> Update Accept List ->
3164 * Enable Scanning
3168 * Disable Scanning
3182 /* No point in doing scanning if LE support hasn't been enabled */ in hci_update_passive_scan_sync()
3190 /* Reset RSSI and UUID filters when starting background scanning in hci_update_passive_scan_sync()
3209 * background scanning. in hci_update_passive_scan_sync()
3212 bt_dev_dbg(hdev, "stopping background scanning"); in hci_update_passive_scan_sync()
3216 bt_dev_err(hdev, "stop background scanning failed: %d", in hci_update_passive_scan_sync()
3223 /* If controller is connecting, we should not start scanning in hci_update_passive_scan_sync()
3230 bt_dev_dbg(hdev, "start background scanning"); in hci_update_passive_scan_sync()
3234 bt_dev_err(hdev, "start background scanning failed: %d", in hci_update_passive_scan_sync()
5543 /* Return reason if scanning since the connection shall probably be in hci_le_connect_cancel_sync()
5695 * or in case of LE it was still scanning so it can be cleanup in hci_abort_conn_sync()
5947 /* If controller is scanning, it means the passive scanning is in hci_active_scan_sync()
5949 * discovery scanning parameters. in hci_active_scan_sync()
5953 bt_dev_err(hdev, "Unable to disable scanning: %d", err); in hci_active_scan_sync()
5980 * advertisement for one peer(*) during active scanning, and in hci_active_scan_sync()
6002 /* Resume passive scanning */ in hci_active_scan_sync()
6031 /* When running simultaneous discovery, the LE scanning time in hci_start_discovery_sync()
6033 * and LE scanning are scheduled by the controller. in hci_start_discovery_sync()
6036 * and LE scanning are done sequentially with separate in hci_start_discovery_sync()
6107 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_update_event_filter_sync() local
6139 if (scan && !scanning) in hci_update_event_filter_sync()
6141 else if (!scan && scanning) in hci_update_event_filter_sync()
6166 * Pause discovery (active scanning/inquiry)
6168 * Pause Scanning (passive scanning in case discovery was not active)
6174 * Update passive scanning (lower duty cycle)
6197 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_suspend_sync()
6224 /* Unpause to take care of updating scanning params */ in hci_suspend_sync()
6283 /* Reset passive scanning to normal */ in hci_resume_scan_sync()
6293 * Update passive scanning (normal duty cycle)
6295 * Resume discovery (active scanning/inquiry)
6311 /* Resume scanning */ in hci_resume_sync()
6539 /* If we're active scanning and simultaneous roles is not in hci_le_create_conn_sync()
6573 /* If controller is scanning, we stop it since some controllers are in hci_le_create_conn_sync()
7040 /* Stop scanning if SID has not been set and active scanning is enabled in hci_le_pa_create_sync()
7041 * so we use passive scanning which will be scanning using the allow in hci_le_pa_create_sync()