From: Jouni Malinen Date: Sat, 27 Sep 2014 13:11:28 +0000 (+0300) Subject: tests: Use TYPE=ONLY scan for scan_for_bss X-Git-Tag: hostap_2_3~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbf20ca26529a95c521955a2628dfa1fe71f4956;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 5e24e2070..8ab071164 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/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")