From: Jouni Malinen Date: Thu, 15 May 2014 13:57:10 +0000 (+0300) Subject: tests: Make wpas_ctrl_bssid_filter more robust X-Git-Tag: hostap_2_2~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=487a31f355dab2665c1b304d566c80d2be099b07;p=thirdparty%2Fhostap.git tests: Make wpas_ctrl_bssid_filter more robust Use scan_for_bss() to make sure the AP is seen even under heavy CPU load. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index ca656ba14..5c98009d0 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -582,6 +582,7 @@ def test_wpas_ctrl_bssid_filter(dev, apdev): params = { "ssid": "test" } hostapd.add_ap(apdev[0]['ifname'], params) hostapd.add_ap(apdev[1]['ifname'], params) + dev[2].scan_for_bss(apdev[0]['bssid'], freq="2412") dev[2].scan(freq="2412") bss = dev[2].get_bss(apdev[0]['bssid']) if bss is None or len(bss) == 0: