From: Jouni Malinen Date: Fri, 11 Apr 2014 21:00:51 +0000 (+0300) Subject: tests: ctrl_iface SCAN_RESULTS X-Git-Tag: hostap_2_2~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939f5b262487c4cd8c467c8fb85a0b2af1ec8026;p=thirdparty%2Fhostap.git tests: ctrl_iface SCAN_RESULTS Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 2a6542d4e..bbecb5207 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -447,6 +447,13 @@ def test_wpas_ctrl_bssid_filter(dev, apdev): bss = dev[2].get_bss(apdev[1]['bssid']) if len(bss) == 0: raise Exception("Missing BSS data(2)") + res = dev[2].request("SCAN_RESULTS").splitlines() + if "test" not in res[1] or "test" not in res[2]: + raise Exception("SSID missing from SCAN_RESULTS") + if apdev[0]['bssid'] not in res[1] and apdev[1]['bssid'] not in res[1]: + raise Exception("BSS1 missing from SCAN_RESULTS") + if apdev[0]['bssid'] not in res[2] and apdev[1]['bssid'] not in res[2]: + raise Exception("BSS1 missing from SCAN_RESULTS") if "FAIL" not in dev[2].request("SET bssid_filter 00:11:22:33:44:55 00:11:22:33:44"): raise Exception("Unexpected success for invalid SET bssid_filter")