If mac80211_hwsim has S1G channels enabled, the 15 second timeout was
not sufficiently long for full scan while connected.
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
# of scanning to avoid reporting errors incorrectly just because of scans
# not having seen the target AP.
for i in range(3):
- wpas.scan()
+ wpas.scan(timeout=30)
if wpas.get_bss(bssid2) is not None:
break
logger.info("Scan again to find target AP")
wpas.dump_monitor()
logger.info("Roam back to AP1")
- wpas.scan()
+ wpas.scan(timeout=30)
wpas.request("ROAM " + bssid)
ev = wpas.wait_event(["CTRL-EVENT-EAP-STARTED",
"CTRL-EVENT-CONNECTED"], timeout=15)
return id
def scan(self, type=None, freq=None, no_wait=False, only_new=False,
- passive=False):
+ passive=False, timeout=15):
if not no_wait:
self.dump_monitor()
if type:
if no_wait:
return
ev = self.wait_event(["CTRL-EVENT-SCAN-RESULTS",
- "CTRL-EVENT-SCAN-FAILED"], 15)
+ "CTRL-EVENT-SCAN-FAILED"], timeout)
if ev is None:
raise Exception("Scan timed out")
if "CTRL-EVENT-SCAN-FAILED" in ev: