]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use TYPE=ONLY scan for scan_for_bss
authorJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 13:11:28 +0000 (16:11 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 13:12:41 +0000 (16:12 +0300)
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>
tests/hwsim/wpasupplicant.py

index 5e24e207007a410db9802c2b3284194aecaa48c4..8ab0711641fb8bcf5247a902f7a381ce956fc994 100644 (file)
@@ -718,7 +718,7 @@ class WpaSupplicant:
         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")