Lines Matching refs:scan
293 raise error.TestFail('SSID %s is not in scan results: %r' %
531 """Request timed scan to discover given SSIDs.
534 is able to successfully kick off a scan. Sometimes, the device on the
536 if the scan did not complete within |scan_timeout_seconds| or it was
539 @param frequencies list of int WiFi frequencies to scan for.
541 @param scan_timeout_seconds: float number of seconds the scan
546 @return time in seconds took to complete scan request.
555 exception=error.TestFail('Unable to trigger scan on client'),
558 # Verify scan operation completed within given timeout
560 raise error.TestFail('Scan time %.2fs exceeds the scan timeout' %
566 logging.info('Wifi scan completed in %.2f seconds', scan_result.time)
570 def scan(self, frequencies, ssids, timeout_seconds=10, require_match=True):
571 """Request a scan and (optionally) check that requested SSIDs appear in
575 able to successfully kick off a scan. Sometimes, the device on the DUT
581 of |ssids| was found in scan results.
583 @param frequencies list of int WiFi frequencies to scan for.
592 condition=lambda: self.iw_runner.scan(
596 exception=error.TestFail('Unable to trigger scan on client'),
606 scan.
613 # If the scan returns None, return 0, else return the matching count
617 function are discovered in the scan
620 how many in the scan match the given ssid
624 scan_results = self.iw_runner.scan(
856 @return a context manager for the net detect scan period
870 @param period: integer number of seconds between wake to scan RTC timer
873 @return a context manager for the net detect scan period
884 the wake to scan RTC timer, which wakes the system from suspend
885 periodically to scan for networks.
888 scan timer
890 @return a context manager for the net detect scan period
936 2) There is a BSS with an appropriate ID in our scan results.
955 2) There is a BSS with an appropriate ID in our scan results.
1022 self.scan(frequencies=[], ssids=[], timeout_seconds=30)
1242 """enable/disable scheduled scan.
1244 @param enable bool flag indicating to enable/disable scheduled scan.