From: Jouni Malinen Date: Fri, 6 Mar 2015 21:17:12 +0000 (+0200) Subject: tests: More thorough cache clearing in ap_hs20_hidden_ssid_in_scan_res X-Git-Tag: hostap_2_4~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45de3286021c7f489e992d01041d1f9ad507806f;p=thirdparty%2Fhostap.git tests: More thorough cache clearing in ap_hs20_hidden_ssid_in_scan_res It looked like cfg80211 BSS entry for the zero-length SSID could remain after this test case. Stop the AP and scan twice with flush-cache option to make this less likely to occur and cause issues to following test cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 668111f28..f58df08d0 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -2562,7 +2562,7 @@ def test_ap_hs20_hidden_ssid_in_scan_res(dev, apdev): params = hs20_ap_params() params['hessid'] = bssid - hostapd.add_ap(apdev[0]['ifname'], params) + hapd = hostapd.add_ap(apdev[0]['ifname'], params) dev[0].hs20_enable() id = dev[0].add_cred_values({ 'realm': "example.com", @@ -2576,6 +2576,8 @@ def test_ap_hs20_hidden_ssid_in_scan_res(dev, apdev): # clear BSS table to avoid issues in following test cases dev[0].request("DISCONNECT") dev[0].wait_disconnected() + hapd.disable() + dev[0].flush_scan_cache() dev[0].flush_scan_cache() def test_ap_hs20_proxyarp(dev, apdev):