This avoids unexpected connection attempts in cases a matching network
is enabled and there is no existing connection (e.g., when testing with
ENABLE_NETWORK no-connect option).
Signed-off-by: Jouni Malinen <j@w1.fi>
if not force_scan and self.get_bss(bssid) is not None:
return
for i in range(0, 10):
- self.scan(freq=freq)
+ self.scan(freq=freq, type="ONLY")
if self.get_bss(bssid) is not None:
return
raise Exception("Could not find BSS " + bssid + " in scan")