diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 7c15341e5..6f969dbba 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -7813,8 +7813,8 @@ def test_ap_wpa3_eap_transition_disable(dev, apdev): proto="WPA WPA2", pairwise="CCMP", group="TKIP CCMP", eap="GPSK", identity="gpsk user", password="abcdefghijklmnop0123456789abcdef", - scan_freq="2412") - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=20) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "04": diff --git a/tests/hwsim/test_owe.py b/tests/hwsim/test_owe.py index 733c7b422..17cae9fca 100644 --- a/tests/hwsim/test_owe.py +++ b/tests/hwsim/test_owe.py @@ -976,9 +976,9 @@ def test_owe_transition_mode_disable(dev, apdev): dev[0].scan_for_bss(bssid2, freq="2412") id = dev[0].connect("owe-test", key_mgmt="OWE", ieee80211w="2", - scan_freq="2412") + scan_freq="2412", wait_connect=False) - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "08": diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 97361d806..7deb60257 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -501,8 +501,8 @@ def test_sae_and_psk_transition_disable(dev, apdev): dev[0].request("SET sae_groups ") id = dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE WPA-PSK", - ieee80211w="1", scan_freq="2412") - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + ieee80211w="1", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "01": diff --git a/tests/hwsim/test_sae_pk.py b/tests/hwsim/test_sae_pk.py index 3bbc62ecd..236082be7 100644 --- a/tests/hwsim/test_sae_pk.py +++ b/tests/hwsim/test_sae_pk.py @@ -259,8 +259,8 @@ def test_sae_pk_transition_disable(dev, apdev): hapd = hostapd.add_ap(apdev[0], params) id = dev[0].connect(SAE_PK_SSID, sae_password=SAE_PK_SEC3_PW, - key_mgmt="SAE", scan_freq="2412") - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + key_mgmt="SAE", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "02": diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index c457f7309..515afae69 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -5791,8 +5791,8 @@ def test_sigma_dut_ap_transition_disable(dev, apdev, params): dev[0].set("sae_groups", "") dev[0].connect("test-sae", key_mgmt="SAE", psk="12345678", - ieee80211w="2", scan_freq="2412") - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + ieee80211w="2", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "01": @@ -5816,8 +5816,8 @@ def test_sigma_dut_ap_transition_disable_change(dev, apdev, params): sigma_dut_cmd_check("ap_config_commit,NAME,AP") dev[0].set("sae_groups", "") dev[0].connect("test-sae", key_mgmt="SAE", psk="12345678", - ieee80211w="2", scan_freq="2412") - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + ieee80211w="2", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is not None: raise Exception("Unexpected transition disable indication") dev[0].request("DISCONNECT") @@ -5826,8 +5826,7 @@ def test_sigma_dut_ap_transition_disable_change(dev, apdev, params): sigma_dut_cmd_check("ap_set_rfeature,NAME,AP,Transition_Disable,1,Transition_Disable_Index,0") dev[0].request("RECONNECT") - dev[0].wait_connected() - ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=1) + ev = dev[0].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "01": diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py index b2e605920..20604e890 100644 --- a/tests/hwsim/test_wpas_ap.py +++ b/tests/hwsim/test_wpas_ap.py @@ -978,8 +978,8 @@ def test_wpas_ap_sae_and_psk_transition_disable(dev): dev[1].set("sae_groups", "") dev[1].connect("wpas-ap-sae", key_mgmt="SAE WPA-PSK", psk="12345678", ieee80211w="1", - scan_freq="2412") - ev = dev[1].wait_event(["TRANSITION-DISABLE"], timeout=1) + scan_freq="2412", wait_connect=False) + ev = dev[1].wait_event(["TRANSITION-DISABLE"], timeout=15) if ev is None: raise Exception("Transition disable not indicated") if ev.split(' ')[1] != "01":