]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Extend wpas_ctrl_bssid_filter for remote testing
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sun, 12 Jan 2020 22:02:26 +0000 (23:02 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 15:50:44 +0000 (17:50 +0200)
When this test case is ran in remote test environment, there could be
additional APs in scan results after bssid_filter has been disabled.
That breaks the check on SCAN_RESULTS output. Extend this to cover the
remote testing case by using bssid_filter with both known APs listed
instead of full wildcard.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/hwsim/test_wpas_ctrl.py

index bac373f2fbc3d81fe857d72b11c42a67c71b5443..91f440191841a0f421c58e3219b72b8abdde7beb 100644 (file)
@@ -802,6 +802,7 @@ def test_wpas_ctrl_level(dev):
     finally:
         dev[2].mon.request("LEVEL 3")
 
+@remote_compatible
 def test_wpas_ctrl_bssid_filter(dev, apdev):
     """wpa_supplicant bssid_filter"""
     try:
@@ -818,7 +819,8 @@ def test_wpas_ctrl_bssid_filter(dev, apdev):
         bss = dev[2].get_bss(apdev[1]['bssid'])
         if bss and len(bss) != 0:
             raise Exception("Unexpected BSS data")
-        dev[2].request("SET bssid_filter ")
+        dev[2].request("SET bssid_filter " + apdev[0]['bssid'] + " " + \
+                       apdev[1]['bssid'])
         dev[2].scan(freq="2412")
         bss = dev[2].get_bss(apdev[0]['bssid'])
         if bss is None or len(bss) == 0: