From: Jouni Malinen Date: Wed, 2 Dec 2015 16:19:39 +0000 (+0200) Subject: tests: Fix ap_wps_er_multi_add_enrollee cleanup steps X-Git-Tag: hostap_2_6~1246 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d887ed3f953a7fcfda3fd0ccbbce1b6a28e899dc;p=thirdparty%2Fhostap.git tests: Fix ap_wps_er_multi_add_enrollee cleanup steps 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 --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index ef687d6aa..455a2f29c 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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"