Lines Matching full:scanning
438 /* This function controls the background scanning based on hdev->pend_le_conns
439 * list. If there are pending LE connection we start the background scanning,
456 /* No point in doing scanning if LE support hasn't been enabled */ in __hci_update_background_scan()
464 /* Reset RSSI and UUID filters when starting background scanning in __hci_update_background_scan()
481 * background scanning. in __hci_update_background_scan()
484 /* If controller is not scanning we are done. */ in __hci_update_background_scan()
490 bt_dev_dbg(hdev, "stopping background scanning"); in __hci_update_background_scan()
496 /* If controller is connecting, we should not start scanning in __hci_update_background_scan()
503 /* If controller is currently scanning, we stop it to ensure we in __hci_update_background_scan()
510 bt_dev_dbg(hdev, "starting background scanning"); in __hci_update_background_scan()
716 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_req_add_le_scan_disable()
917 * - Interleaved scanning is not currently using the allowlist in update_accept_list()
940 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_req_start_scan()
952 /* Use ext scanning if set ext scan param and ext scan enable is in hci_req_start_scan()
1025 /* Returns true if an le connection is in the scanning state */
1058 /* Background scanning should run with address resolution */ in hci_req_add_le_passive_scan()
1062 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in hci_req_add_le_passive_scan()
1067 * during passive scanning. Not using an non-resolvable address in hci_req_add_le_passive_scan()
1082 * happen before enabling scanning. The controller does in hci_req_add_le_passive_scan()
1083 * not allow accept list modification while scanning. in hci_req_add_le_passive_scan()
1112 /* Disable duplicates filter when scanning for advertisement in hci_req_add_le_passive_scan()
1120 * scanning, it is necessary to disable duplicates filter, in hci_req_add_le_passive_scan()
1176 bool scanning = test_bit(HCI_PSCAN, &hdev->flags); in hci_req_set_event_filter() local
1200 if (scan && !scanning) { in hci_req_set_event_filter()
1203 } else if (!scan && scanning) { in hci_req_set_event_filter()
1367 /* Prevent disconnects from causing scanning to be re-enabled */ in hci_req_prepare_suspend()
1387 /* Unpause to take care of updating scanning params */ in hci_req_prepare_suspend()
1404 /* Reset passive/background scanning to normal */ in hci_req_prepare_suspend()
2568 * scanning and non-connectable advertising. in hci_update_random_address()
3062 /* If controller is not scanning we are done. */ in le_scan_restart()
3067 bt_dev_dbg(hdev, "Scanning is paused for suspend"); in le_scan_restart()
3159 /* If controller is scanning, it means the background scanning is in active_scan()
3161 * discovery scanning parameters. in active_scan()
3180 * advertisement for one peer(*) during active scanning, and in active_scan()
3188 * it is common to have active scanning for a short period of in active_scan()
3227 /* When running simultaneous discovery, the LE scanning time in start_discovery()
3229 * and LE scanning are scheduled by the controller. in start_discovery()
3232 * and LE scanning are done sequentially with separate in start_discovery()
3270 * restarting scanning during the discovery phase. in start_discovery()
3304 /* Passive scanning */ in hci_req_stop_discovery()