From bbf20ca26529a95c521955a2628dfa1fe71f4956 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 Sep 2014 16:11:28 +0300 Subject: [PATCH] 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 --- tests/hwsim/wpasupplicant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 5e24e20..8ab0711 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") -- 2.1.4