]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear STA state at the end of ap_ft_reassoc_proto
authorJouni Malinen <j@w1.fi>
Sun, 10 Dec 2023 10:37:58 +0000 (12:37 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Dec 2023 17:30:44 +0000 (19:30 +0200)
Do not leave dev[0] in state where it is waiting for
NL80211_CMD_ASSOCIATE to complete since that might deliver an
ASSOC_TIMED_OUT event to the next test case.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ft.py

index 0e9d04775e56d09a11d4f91943e2fbd921d6d3fa..3980b4c84b876a99c0dfd86c4273b8c87e81ef49 100644 (file)
@@ -3209,6 +3209,12 @@ def test_ap_ft_reassoc_proto(dev, apdev):
     for t in tests:
         hapd2ap.request("MGMT_RX_PROCESS freq=2412 datarate=0 ssi_signal=-30 frame=" + hdr + ies1 + t)
 
+    # Do not leave dev[0] in state where it is waiting for
+    # NL80211_CMD_ASSOCIATE to complete since that might deliver
+    # an ASSOC_TIMED_OUT event to the next test case.
+    dev[0].request("DISCONNECT")
+    time.sleep(0.2)
+
 def test_ap_ft_reassoc_local_fail(dev, apdev):
     """WPA2-PSK-FT AP Reassociation Request frame and local failure"""
     ssid = "test-ft"