From d970337da7a95957620500aab2d050442acd24ae Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 6 Mar 2015 23:18:46 +0200 Subject: [PATCH] tests: Make suite_b* test cases more robust Explicitly clear the cfg80211 BSS cache at the beginning of these test cases to avoid matching BSS flags against incorrect AP. Signed-off-by: Jouni Malinen --- tests/hwsim/test_suite_b.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_suite_b.py b/tests/hwsim/test_suite_b.py index 2fee87c48..1fabe3e28 100644 --- a/tests/hwsim/test_suite_b.py +++ b/tests/hwsim/test_suite_b.py @@ -25,6 +25,7 @@ def test_suite_b(dev, apdev): if "build=OpenSSL 1.0.2" not in tls or "run=OpenSSL 1.0.2" not in tls: raise HwsimSkip("OpenSSL version not supported for Suite B: " + tls) + dev[0].flush_scan_cache() params = { "ssid": "test-suite-b", "wpa": "2", "wpa_key_mgmt": "WPA-EAP-SUITE-B", @@ -83,6 +84,7 @@ def test_suite_b_192(dev, apdev): if "build=OpenSSL 1.0.2" not in tls or "run=OpenSSL 1.0.2" not in tls: raise HwsimSkip("OpenSSL version not supported for Suite B: " + tls) + dev[0].flush_scan_cache() params = { "ssid": "test-suite-b", "wpa": "2", "wpa_key_mgmt": "WPA-EAP-SUITE-B-192",