]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix ap_wps_er_multi_add_enrollee cleanup steps
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 2 Dec 2015 16:19:39 +0000 (18:19 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Dec 2015 16:19:39 +0000 (18:19 +0200)
Only one of the ERs was stopped at the end of the test case and this
could result in the following test case failing, e.g., when executing
this test case sequence: ap_wps_er_multi_add_enrollee ap_wps_upnp.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_wps.py

index ef687d6aa1ac3dda08f3193a6ee8418f6c16a52a..455a2f29cbe7cfe288166a9eb5c80831809c2030 100644 (file)
@@ -1195,7 +1195,8 @@ def test_ap_wps_er_multi_add_enrollee(dev, apdev):
     try:
         _test_ap_wps_er_multi_add_enrollee(dev, apdev)
     finally:
-        dev[0].request("WPS_ER_STOP")
+        for i in range(2):
+            dev[i].request("WPS_ER_STOP")
 
 def _test_ap_wps_er_multi_add_enrollee(dev, apdev):
     ssid = "wps-er-add-enrollee"