Parcourir la source

tests: Use TYPE=ONLY scan for scan_for_bss

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>
Jouni Malinen il y a 10 ans
Parent
commit
bbf20ca265
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/hwsim/wpasupplicant.py

+ 1 - 1
tests/hwsim/wpasupplicant.py

@@ -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")