]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Avoid race condition in ap_open_tdls_external_control
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Fri, 23 Jan 2026 14:28:13 +0000 (16:28 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 23 Jan 2026 14:28:13 +0000 (16:28 +0200)
Make this test case wait for the kernel STA entries to be ready for Data
frames before initiating TDLS setup similarly to the other TDLS test
cases. This avoids issues where "dropped frame to 02:00:00:00:01:00
(unauthorized port)" is seen in kernel log and the TDLS setup does not
complete in time.

Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
tests/hwsim/test_ap_tdls.py

index b4ab09fd6cb226cfbfe9a922a974e30268508c81..82e6033757a4c76584c23b7e75dc3609fd42c50a 100644 (file)
@@ -603,6 +603,9 @@ def _test_ap_open_tdls_external_control(dev, apdev):
     dev[1].connect("test-open", key_mgmt="NONE", scan_freq="2412")
     addr0 = dev[0].own_addr()
     addr1 = dev[1].own_addr()
+    hapd.wait_sta()
+    hapd.wait_sta()
+    connectivity(dev, hapd)
 
     dev[0].set("tdls_external_control", "1")
     if "FAIL" in dev[0].request("TDLS_SETUP " + addr1):